Esempio n. 1
0
        public async Task ThenTheMediatorIsCalledWithTheListOfOrganisations()
        {
            //Act
            await _orchestrator.GetLegalAgreementsToRemove(ExpectedHahsedAccountId, ExpectedUserId);

            //Assert
            _mediator.Verify(x => x.SendAsync(It.Is <GetAccountEmployerAgreementsRemoveRequest>(
                                                  c => c.HashedAccountId.Equals(ExpectedHahsedAccountId) &&
                                                  c.UserId.Equals(ExpectedUserId))), Times.Once);
        }
        public async Task <ActionResult> GetOrganisationsToRemove(string hashedAccountId)
        {
            var model = await _orchestrator.GetLegalAgreementsToRemove(hashedAccountId, OwinWrapper.GetClaimValue(ControllerConstants.UserRefClaimKeyName));

            return(View(model));
        }