public void Init() { _workflowMessageServiceMock = new Mock <IWorkflowMessageService>(); _workflowMessageServiceMock.Setup(x => x.SendOutBidCustomerNotification(It.IsAny <Product>(), It.IsAny <string>(), It.IsAny <Bid>())).Returns(Task.FromResult(1)); _sendOutBidCustomerNotificationCommandHandler = new SendOutBidCustomerNotificationCommandHandler(_workflowMessageServiceMock.Object); _sendOutBidCustomerNotificationCommand = new SendOutBidCustomerNotificationCommand { Product = new Product(), Language = new Domain.Localization.Language(), Bid = new Bid() }; }
public void Init() { _messageProviderMock = new Mock <IMessageProviderService>(); _handler = new SendOutBidCustomerNotificationCommandHandler(_messageProviderMock.Object); }