Public Async Task ReceiveDataOnQueue()
{
Try
{
If(Dev)
{
cred = GenerateToken();
sqlClient = new AmazonSQlClient(cred, endPoint);
}
else{
sqlClient = new AmazonSQlClient(cred, endPoint)
}
ReadMessageFromQueue(sqlClient);
DeleteMessageFromQueue();
}
Catch(Exception Ex)
{
Throw Ex
}
}
ASKER
ASKER
ASKER
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY
Maybe you rephrase your question and explain what you like test for what reason.
Also your method contains some smells, I would even say anti-patterns. You should view The Clean Code Talks - "Global State and Singletons" and "The Clean Code Talks -- Unit Testing".