Exemple #1
0
 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()
     };
 }
Exemple #2
0
 public void Init()
 {
     _messageProviderMock = new Mock <IMessageProviderService>();
     _handler             = new SendOutBidCustomerNotificationCommandHandler(_messageProviderMock.Object);
 }