public void Initialize() { fakeAggregatedStories = new AggregatedStory[] { new AggregatedStory { Story = new Story { Message = "First story", PostedOn = new DateTime(2000, 1, 1, 15, 1, 0) }}, new AggregatedStory { Story = new Story { Message = "Second story", PostedOn = new DateTime(2000, 1, 1, 15, 5, 0) }} }; //Creates a fake IAggregatorService with a liked observer in order to //assert that the SUT relies on it aggregatorServiceObserver = new StubObserver(); aggregatorService = new Contracts.Interfaces.Fakes.StubIAggregatorService { InstanceObserver = aggregatorServiceObserver, GetAggregatedStoriesString = userName => fakeAggregatedStories }; aggregatedStoryFormatterObserver = new StubObserver(); aggregatedStoryFormatter = new Contracts.Interfaces.Fakes.StubIEntityFormatter<AggregatedStory> { InstanceObserver = aggregatedStoryFormatterObserver, FormatT0 = aggregatedStory => aggregatedStory.Story.Message }; sut = new WallCommand(aggregatorService, aggregatedStoryFormatter); }
public ItemsController(ILoggerManager logger, ICRepositoryWrapper repository, IDbcRepositoryWrapper dbcRepository, IAggregatorService aggregator) { _logger = logger; _repository = repository; _dbcRepository = dbcRepository; _aggregator = aggregator; }
public SearchService(IEnumerable <IRetriever> retrievers, IEnumerable <IScraper> scrapers, IAggregatorService aggregatorService, IConfig config, ILogger <SearchService> logger) { _retrievers = retrievers; _scrapers = scrapers; _aggregatorService = aggregatorService; _config = config; _logger = logger; }
public GetEventsByChatIdQueryHandler( IApplicationDbContext context, IMapper mapper, IAggregatorService aggregatorService) { _context = context; _mapper = mapper; _aggregatorService = aggregatorService; }
public Program( IEnumerable <ISetupService> setupServices, IAggregatorService aggregatorService, IExportService exportService) { _setupServices = setupServices; _aggregatorService = aggregatorService; _exportService = exportService; }
public DataAggregatorCore(IAggregatorService <CollectedDataDto> aggregatorService, IInstanceAnomalyReportsRepository reportsRepository, ILogger <DataAggregatorCore> logger, IAnomalyDetector anomalyDetector, IServiceBusProvider provider) { _aggregatorService = aggregatorService; _reportsRepository = reportsRepository; _logger = logger; _anomalyDetector = anomalyDetector; _serviceBusProvider = provider; }
public NetcoupeController(ILogger <NetcoupeController> logger, IConfigurationService configuration, IDataConverter dataConverter, IAggregatorService aggregatorService, IStorageService storageService, IFirestoreService firestoreService) { _logger = logger; _configuration = configuration; _dataConverter = dataConverter; _aggregatorService = aggregatorService; _storageService = storageService; _firestoreService = firestoreService; }
public Program( IEnumerable <ISetupService> setupServices, IFrequencyDictionaryService frequencyDictionaryService, IKanjiDictionaryService kanjiDictionaryService, IVocabDictionaryService vocabDictionaryService, IWaniKaniDictionaryService waniKaniDictionaryService, IAggregatorService aggregatorService, IExportService exportService) { _setupServices = setupServices; _frequencyDictionaryService = frequencyDictionaryService; _kanjiDictionaryService = kanjiDictionaryService; _vocabDictionaryService = vocabDictionaryService; _waniKaniDictionaryService = waniKaniDictionaryService; _aggregatorService = aggregatorService; _exportService = exportService; }
public OrderDetailsController(ILogger <OrderDetailsController> logger, IAggregatorService aggregatorService) { this.logger = logger; this.aggregatorService = aggregatorService; }
public void Setup() { Service = new AggregatorService(); }
public Function(ILoggerFactory loggerFactory, ILogger <Function> logger, IAggregatorService aggregatorService) { _logger = logger; _aggregagorService = aggregatorService; }
/// <summary> /// </summary> /// <param name="aggregatorService">Service class to use to perform the command</param> /// <param name="storyFormatter">Object that this class uses to text-render the aggregated story items</param> public WallCommand(IAggregatorService aggregatorService, IEntityFormatter<AggregatedStory> storyFormatter) { this.aggregatorService = aggregatorService; this.storyFormatter = storyFormatter; }
public OrderDetailsController(IAggregatorService aggregatorService) { this.aggregatorService = aggregatorService; }