Created
February 28, 2020 01:15
-
-
Save carloscds/583f0053d807d2597b2c81c3e352c8c5 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 void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddControllers(); | |
services.AddDbContext<AplicacaoContext>(options => | |
options.UseInMemoryDatabase("DBMemory")); | |
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); | |
services.AddScoped<IEnvioEmail, EnvioEmail>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment