public void SetUp()
        {
            mocker = AutoMock.GetLoose();
            paymentHistoryCacheMock = mocker.Mock <IDataCache <PaymentHistoryEntity[]> >();
            requiredPaymentService  = mocker.Mock <IRequiredPaymentProcessor>();
            negativeEarningsService = mocker.Mock <INegativeEarningService>();
            mocker.Mock <IPaymentLogger>();

            act2EarningEventProcessor = mocker.Create <ApprenticeshipContractType2EarningEventProcessor>(
                new NamedParameter("apprenticeshipKey", "key"),
                new NamedParameter("mapper", mapper),
                new AutowiringParameter());
        }
Example #2
0
 public void SetUp()
 {
     mocker = AutoMock.GetLoose();
     paymentHistoryCacheMock = mocker.Mock <IDataCache <PaymentHistoryEntity[]> >();
     requiredPaymentService  = mocker.Mock <IRequiredPaymentProcessor>();
     negativeEarningsService = mocker.Mock <INegativeEarningService>();
     mocker.Mock <IPaymentLogger>();
     mocker.Mock <IDuplicateEarningEventService>()
     .Setup(x => x.IsDuplicate(It.IsAny <IPaymentsEvent>(), It.IsAny <CancellationToken>()))
     .ReturnsAsync(false);
     act2EarningEventProcessor = mocker.Create <ApprenticeshipContractType2EarningEventProcessor>(
         new NamedParameter("apprenticeshipKey", "key"),
         new NamedParameter("mapper", mapper),
         new AutowiringParameter());
 }