public async Task <ActionResult> Start(StartTransferConnectionInvitationViewModel model) { await _mediator.SendAsync(new SendTransferConnectionInvitationQuery { ReceiverAccountPublicHashedId = model.ReceiverAccountPublicHashedId, AccountId = model.AccountId }); return(RedirectToAction("Send", new { receiverAccountPublicHashedId = model.ReceiverAccountPublicHashedId })); }
public void Arrange() { _mediator.Setup(m => m.SendAsync(It.IsAny <SendTransferConnectionInvitationQuery>())).ReturnsAsync(new SendTransferConnectionInvitationResponse()); _controller = new TransferConnectionInvitationsController(null, _mediator.Object); _viewModel = new StartTransferConnectionInvitationViewModel { ReceiverAccountPublicHashedId = ReceiverAccountPublicHashedId }; }