public async Task ThenTheMediatorIsCalledToGetTheUser()
        {
            //Act
            await _orchestrator.ForgottenPasswordFromEmail(HashedUserID);

            //Assert
            _mediator.Verify(x => x.SendAsync(It.Is <GetUserByHashedIdQuery>(c => c.HashedUserId.Equals(HashedUserID))));
        }
Пример #2
0
        public async Task <ActionResult> ForgottenCredentialsReturnEmailUrl(string hashedUserId)
        {
            if (string.IsNullOrEmpty(hashedUserId))
            {
                return(RedirectToAction("RequestUnlockCode"));
            }

            var model = await _accountOrchestrator.ForgottenPasswordFromEmail(hashedUserId);

            return(View("ResetPassword", model));
        }