Beispiel #1
0
 public void Arrange()
 {
     Account = new Account {
         Id = AccountId, ApprenticeshipEmployerType = CommitmentsV2.Types.ApprenticeshipEmployerType.Levy
     };
     MockEmployerAccountService.Setup(x => x.GetAccount(It.IsAny <long>())).ReturnsAsync(Account);
     MockHashingService.Setup(x => x.DecodeValue(It.IsAny <string>())).Returns((string param) => Convert.ToInt64(param.Remove(0, 3)));
 }
Beispiel #2
0
        public async Task ShouldCallServiceWithDecodedAccountId()
        {
            await EmployerCommitmentOrchestrator.GetApprenticeshipEmployerType(HashedAccountId);

            MockEmployerAccountService.Verify(x => x.GetAccount(AccountId), Times.Once);
        }