We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0969bac commit a6e8cfaCopy full SHA for a6e8cfa
tests/web/Jordnaer.Server.Tests/Profile/ImageServiceTests.cs
@@ -17,8 +17,9 @@ public class ImageService_Should
17
18
public ImageService_Should(JordnaerWebApplicationFactory factory)
19
{
20
- _blobServiceClient = factory.Services.GetRequiredService<BlobServiceClient>();
21
- _sut = factory.Services.GetRequiredService<IImageService>();
+ using var scope = factory.Services.CreateScope();
+ _blobServiceClient = scope.ServiceProvider.GetRequiredService<BlobServiceClient>();
22
+ _sut = scope.ServiceProvider.GetRequiredService<IImageService>();
23
}
24
25
[Fact]
0 commit comments