Ejemplo n.º 1
0
        public void Arrange()
        {
            _mediator.Setup(m => m.SendAsync(It.IsAny <IAsyncRequest <long> >()));

            _controller = new TransferConnectionInvitationsController(null, _mediator.Object);

            _viewModel = new DeletedTransferConnectionInvitationViewModel();
        }
        public ActionResult Deleted(DeletedTransferConnectionInvitationViewModel model)
        {
            switch (model.Choice)
            {
            case "GoToTransfersPage":
                return(RedirectToAction("Index", "Transfers"));

            case "GoToHomepage":
                return(RedirectToAction("Index", "EmployerTeam"));

            default:
                throw new ArgumentOutOfRangeException(nameof(model.Choice));
            }
        }
        public ActionResult Deleted()
        {
            var model = new DeletedTransferConnectionInvitationViewModel();

            return(View(model));
        }