Exemplo n.º 1
0
        private void AssertContainerOnApplyingDatabaseContext()
        {
            var applicationDbContext = GenerateApplicationDbContext();

            Injector.AddApplicationDbContext(applicationDbContext);
            Injector.IsAlreadyRegistered().Should().BeTrue();
        }
 protected AbstractInjectorInstantiation()
 {
     Injector.AddApplicationDbContext(GenerateApplicationDbContext());
 }
Exemplo n.º 3
0
 private void ConfigureDbContexts(IServiceCollection services)
 {
     Injector.AddApplicationDbContext(new ApplicationDbContext(GenerateDbContextOptions()));
     services.AddDbContext <ApplicationDbContext>(options => GenerateDbContextOptions());
 }