private void InvokeVerified(bool verified) { PaymentEventHandler handler = Verified; if (handler != null) { handler(verified); } }
public void Arrange() { _mediator = new Mock <IMediator>(); _eventRepository = new Mock <IEventRepository>(); _logger = new Mock <ILog>(); _configuration = new Mock <IDataConfiguration>(); _configuration.SetupGet(x => x.FailureTolerance).Returns(5); _handler = new PaymentEventHandler(_mediator.Object, _eventRepository.Object, _configuration.Object, _logger.Object); }