Ejemplo n.º 1
0
        public async Task Send_Emails_Calls_Handler()
        {
            var result = await _controller.SendEmails(_request);

            _mediator.Verify(x =>
                             x.Send(It.Is <SendEmailsCommand>(c => c.EmailDataList.Count == _request.EmailDataList.Count && c.EmailDataList[0].RecipientEmailAddress == _request.EmailDataList[0].RecipientEmailAddress),
                                    It.IsAny <CancellationToken>()));
        }