Esempio n. 1
0
        public StatUnitAnalysisRulesServiceTest()
        {
            var builder =
                new ConfigurationBuilder().AddJsonFile(
                    Path.Combine(
                        Directory.GetCurrentDirectory(),
                        "..", "..", "..", "..", "..",
                        "appsettings.Shared.json"),
                    true);
            var configuration = builder.Build();

            _analysisRules      = configuration.GetSection(nameof(StatUnitAnalysisRules)).Get <StatUnitAnalysisRules>();
            _mandatoryFields    = configuration.GetSection(nameof(DbMandatoryFields)).Get <DbMandatoryFields>();
            _validationSettings = configuration.GetSection(nameof(ValidationSettings)).Get <ValidationSettings>();
            _helper             = new StatUnitTestHelper(_analysisRules, _mandatoryFields, _validationSettings);
            _connectionSettings = configuration.GetSection(nameof(ConnectionSettings)).Get <ConnectionSettings>();

            StartupConfiguration.ConfigureAutoMapper();
        }
Esempio n. 2
0
 public RoleServiceTest()
 {
     StartupConfiguration.ConfigureAutoMapper();
 }
Esempio n. 3
0
 public SampleFramesServiceTest()
 {
     StartupConfiguration.ConfigureAutoMapper();
 }