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))); }
public async Task ShouldCallServiceWithDecodedAccountId() { await EmployerCommitmentOrchestrator.GetApprenticeshipEmployerType(HashedAccountId); MockEmployerAccountService.Verify(x => x.GetAccount(AccountId), Times.Once); }