public BotsAirstripServiceTest() { dbContext = InMemoryDatabaseFactory.Create(); var logger = new StubLogger(); var accessCheckService = new AccessCheckService(dbContext); var monitorNegotiatorService = new MonitorNegotiatorService(); var forestNegotiatorService = new DichStubForestNegotiatorService(dbContext); botsAirstripService = new BotsAirstripService(logger, accessCheckService, monitorNegotiatorService, forestNegotiatorService, dbContext); }
public BotForSalesSettingsController(ApplicationContext context, IHostingEnvironment appEnvironment, SimpleLogger logger, BotForSalesStatisticsService botForSalesStatisticsService, BotsAirstripService botsAirstripService) { _logger = logger; _appEnvironment = appEnvironment; _botsAirstripService = botsAirstripService; _botForSalesStatisticsService = botForSalesStatisticsService; _contextDb = context ?? throw new ArgumentNullException(nameof(context)); }