/// <summary> /// Initializes a new instance of the <see cref="CustomMaterialPropService"/> class. /// </summary> /// <param name="loggerFactory">A factory to create loggers from.</param> /// <param name="propRepository">The property repository.</param> public CustomMaterialPropService(ILoggerFactory loggerFactory, ICustomMaterialPropRepository propRepository) { Logger = loggerFactory.CreateLogger <CustomMaterialPropService>(); PropRepository = propRepository; }
/// <summary> /// Sets up needed repositories and purges all related tables. /// </summary> public CustomMaterialPropRepositoryTests() { Repository = new PostgreSqlCustomMaterialPropRepository(ConfigurationProvider.GetConfiguration()); DatabasePurger.PurgeCustomMaterialProps(); }