示例#1
0
 /// <summary>
 /// Sets up the SUT and needed services and and cleans up plastics tbales.
 /// </summary>
 public PlasticsRepositoryTests()
 {
     Repository = new PostgreSqlPlasticsRepository(ConfigurationProvider.GetConfiguration());
     DatabasePurger.PurgePlastics();
 }
示例#2
0
 /// <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;
 }