예제 #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();
        }
예제 #2
0
 public RoleServiceTest()
 {
     StartupConfiguration.ConfigureAutoMapper();
 }
예제 #3
0
 public SampleFramesServiceTest()
 {
     StartupConfiguration.ConfigureAutoMapper();
 }