/// <summary> /// Sets up the SUT and needed services and and cleans up plastics tbales. /// </summary> public PlasticsRepositoryTests() { Repository = new PostgreSqlPlasticsRepository(ConfigurationProvider.GetConfiguration()); DatabasePurger.PurgePlastics(); }
/// <summary> /// Initializes a new instance of the <see cref="PlasticsService"/> class. /// </summary> /// <param name="loggerFactory">A factory to create loggers from.</param> /// <param name="plasticsRepository">A plastics repository.</param> public PlasticsService(ILoggerFactory loggerFactory, IPlasticsRepository plasticsRepository) { Logger = loggerFactory.CreateLogger <PlasticsService>(); PlasticsRepository = plasticsRepository; }