public async Task Handle_InvokeExpectedMethod() { var command = new SendOutBidCustomerCommand() { Product = new Domain.Catalog.Product(), Bid = new Domain.Catalog.Bid(), Language = new Domain.Localization.Language() }; await _handler.Handle(command, default); _messageProviderMock.Verify(c => c.SendOutBidCustomerMessage(It.IsAny <Product>(), It.IsAny <string>(), It.IsAny <Bid>())); }
public async Task CallSendOutBidCustomerNotification() { await _sendOutBidCustomerNotificationCommandHandler.Handle(_sendOutBidCustomerNotificationCommand, default); _workflowMessageServiceMock.Verify(x => x.SendOutBidCustomerNotification(It.IsAny <Product>(), It.IsAny <string>(), It.IsAny <Bid>()), Times.Once()); }