79433195

Date: 2025-02-12 13:19:20
Score: 1
Natty:
Report link

I didn't run your code, but I can say that the error occurs because your code creates a static field initialized at class loading time, which can cause issues with mocking frameworks and unit testing. The static initialization happens before test methods run, making it difficult for mocking frameworks to intercept and mock the BlobServiceClient creation.

Try Lazy initialization and see if that works.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Prashant Kumar