public IntegrationTestBase() { if (!_isBootstrapped) { DependencyManager.BootstrapForTests( new SystemLogForIntegrationTests(), new DatabaseSettings()); _isBootstrapped = true; } }
public RepositoryTestsBase() { var dataConnectionStrings = new DataConnectionStringsForIntegrationTests(); if (!AlreadyInit) { SystemLog = new SystemLogForIntegrationTests(); DependencyManager.BootstrapForTests(SystemLog, dataConnectionStrings, dataConnectionStrings, dataConnectionStrings, dataConnectionStrings); AlreadyInit = true; } }
public void WebApiShouldReturnRegionScheme() { var dataConnectionStrings = new DataConnectionStringsForIntegrationTests(); var systemLog = new SystemLogForIntegrationTests(); DependencyManager.BootstrapForTests(systemLog, dataConnectionStrings, dataConnectionStrings, dataConnectionStrings, dataConnectionStrings); var countryWebApiGateway = MasterFactory.CountryWebApiGateway; var regionScheme = countryWebApiGateway.GetRegionScheme(); regionScheme.Should().NotBeNull(); regionScheme.Regions.Should().NotBeNull(); regionScheme.Regions.Select(x => x.Countries).All(x => x != null).Should().BeTrue(); }