Example #1
0
        public async Task ThenTheMediatorIsCalledToGetTheEnglishFractionHistory()
        {
            //Act
            await _employerAccountPayeOrchestrator.GetPayeDetails(EmpRef, AccountId, UserId);

            //Assert
            _mediator.Verify(x => x.SendAsync(It.IsAny <GetEmployerEnglishFractionQuery>()), Times.Once);
        }
Example #2
0
        public async Task ThenTheMediatorIsCalledToGetThePayeScheme()
        {
            //Act
            await _orchestrator.GetPayeDetails(EmpRef, AccountId, UserId);

            //Assert
            _mediator.Verify(x => x.SendAsync(It.IsAny <GetPayeSchemeByRefQuery>()), Times.Once);
        }
Example #3
0
        public async Task <ActionResult> Details(string hashedAccountId, string empRef)
        {
            empRef = empRef.FormatPayeFromUrl();

            var response = await _employerAccountPayeOrchestrator.GetPayeDetails(empRef, hashedAccountId, OwinWrapper.GetClaimValue("sub"));

            return(View(response));
        }