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