private void AssertContainerOnApplyingDatabaseContext()
        {
            var applicationDbContext = GenerateApplicationDbContext();

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