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(); }
public RoleServiceTest() { StartupConfiguration.ConfigureAutoMapper(); }
public SampleFramesServiceTest() { StartupConfiguration.ConfigureAutoMapper(); }