コード例 #1
0
        public async Task ThenADeleteTransferConnectionInvitationCommandShouldBeSentIfIChoseOption1()
        {
            _viewModel.Choice = "Confirm";

            await _controller.Details(_viewModel);

            _mediator.Verify(m => m.SendAsync(It.Is <DeleteTransferConnectionInvitationCommand>(c => c.TransferConnectionInvitationId == _viewModel.TransferConnectionInvitationId)), Times.Once);
        }
        public async Task ThenAGetTransferConnectionQueryShouldBeSent()
        {
            await _controller.Details(_query);

            _mediator.Verify(m => m.SendAsync(_query), Times.Once);
        }