Ejemplo n.º 1
0
        public IntegrationTestBase()
        {
            if (!_isBootstrapped)
            {
                DependencyManager.BootstrapForTests(
                    new SystemLogForIntegrationTests(),
                    new DatabaseSettings());

                _isBootstrapped = true;
            }
        }
Ejemplo n.º 2
0
        public RepositoryTestsBase()
        {
            var dataConnectionStrings = new DataConnectionStringsForIntegrationTests();

            if (!AlreadyInit)
            {
                SystemLog = new SystemLogForIntegrationTests();

                DependencyManager.BootstrapForTests(SystemLog, dataConnectionStrings, dataConnectionStrings, dataConnectionStrings,
                                                    dataConnectionStrings);

                AlreadyInit = true;
            }
        }
Ejemplo n.º 3
0
        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();
        }