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

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

            //Assert
            _mediator.Verify(x => x.SendAsync(It.IsAny <GetPayeSchemeByRefQuery>()), Times.Once);
        }
Exemple #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));
        }