public async Task ThenTheLoggedInUserIsCheckedToMakeSureThatTheyAreAnOwner()
        {
            //Act
            await _employerAccountPayeOrchestrator.CheckUserIsOwner(ExpectedHashedId, ExpectedUserId, "", "", "");

            //assert
            _mediator.Verify(x => x.SendAsync(It.IsAny <GetMemberRequest>()), Times.Once);
        }
        public async Task <ActionResult> GatewayInform(string hashedAccountId)
        {
            var response = await _employerAccountPayeOrchestrator.CheckUserIsOwner(
                hashedAccountId,
                OwinWrapper.GetClaimValue(ControllerConstants.EmailClaimKeyName),
                Url.Action(ControllerConstants.IndexActionName, ControllerConstants.EmployerAccountPayeControllerName, new { hashedAccountId }),
                Url.Action(ControllerConstants.GetGatewayActionName, ControllerConstants.EmployerAccountPayeControllerName, new { hashedAccountId }));

            return(View(response));
        }
Пример #3
0
        public async Task <ActionResult> GatewayInform(string hashedAccountId)
        {
            var response = await _employerAccountPayeOrchestrator.CheckUserIsOwner(
                hashedAccountId,
                OwinWrapper.GetClaimValue("email"),
                Url.Action("Index", "EmployerAccountPaye", new { hashedAccountId }),
                Url.Action("Index", "EmployerAccountPaye", new { hashedAccountId }),
                Url.Action("GetGateway", "EmployerAccountPaye", new { hashedAccountId }));

            return(View(response));
        }