public void ThenIShouldBeShownTheStartTransferConnectionInvitationPage() { var result = _controller.Start() as ViewResult; var model = result?.Model as StartTransferConnectionInvitationViewModel; Assert.That(result, Is.Not.Null); Assert.That(result.ViewName, Is.EqualTo("")); Assert.That(model, Is.Not.Null); }
public async Task ThenAGetTransferConnectionInvitationAccountQueryShouldBeSent() { await _controller.Start(_viewModel); _mediator.Verify(m => m.SendAsync(It.Is <SendTransferConnectionInvitationQuery>(q => q.ReceiverAccountPublicHashedId == _viewModel.ReceiverAccountPublicHashedId)), Times.Once); }