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

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