-
-
Save Adolfi/5b75a61f0b9b2fed57a6e78cc33e0dbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Tests | |
{ | |
private WebApplicationFactory<Program> factory; | |
[SetUp] | |
public void Setup() | |
{ | |
this.factory = new WebApplicationFactory<Program>().WithWebHostBuilder(builder => | |
{ | |
builder.ConfigureTestServices(services => | |
{ | |
services.AddScoped<IEmailService, FakeEmailService>(); | |
}); | |
}); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment