public void HealthCheckService_AggregateException() { var appSettings = new AppSettings { Verbose = true }; AppSettingsReflection.Modify(appSettings, "get_DatabaseType", 8); var services = new ServiceCollection(); new SetupHealthCheck(appSettings, services).BuilderHealth(); // expect exception database type is not found }
public void BuilderDbFactorySwitch_fail() { var appSettings = new AppSettings { Verbose = true }; // do something that should not be allowed AppSettingsReflection.Modify(appSettings, "get_DatabaseType", 8); var services = new ServiceCollection(); new SetupDatabaseTypes(appSettings, services).BuilderDbFactorySwitch(); // expect exception }