internal RadonExecutor(IEmailConfiguration emailConfig, IFilterConfiguration filterConfig, IEventIdentificationStore eventIdentificationStore, IEventReader eventReader) { EmailConfig = emailConfig; _filterConfig = filterConfig; _eventIdentificationStore = eventIdentificationStore; _eventReader = eventReader; }
public void TestFixtureSetUp() { _mockReportSender = MockRepository.GenerateMock <IReportSender>(); _mockEmailConfiguration = MockRepository.GenerateMock <IEmailConfiguration>(); _mockFilterConfiguration = MockRepository.GenerateMock <IFilterConfiguration>(); _mockEventIdentificationStore = MockRepository.GenerateMock <IEventIdentificationStore>(); _mockEventReader = MockRepository.GenerateMock <IEventReader>(); _radonExecutor = new RadonExecutor(_mockEmailConfiguration, _mockFilterConfiguration, _mockEventIdentificationStore, _mockEventReader); }
public void Setup() { _mockEventSource = MockRepository.GenerateMock <IEventReader>(); _mockEventIdentificationStore = MockRepository.GenerateMock <IEventIdentificationStore>(); _events = Enumerable.Range(0, 10).Select(i => new LogEvent { Message = i.ToString(), TimeGenerated = DateTime.Now.AddHours(-i) }).ToList(); _mockEventSource.Expect(e => e.ReadEvents()).Return(_events); _target = new AlreadyReportedFilter(_mockEventSource, _mockEventIdentificationStore); }
public void TestFixtureSetUp() { _mockEventIdentificationStore = MockRepository.GenerateMock <IEventIdentificationStore>(); }
public AlreadyReportedFilter(IEventReader eventReader, IEventIdentificationStore identificationStore) { _eventReader = eventReader; _identificationStore = identificationStore; }