示例#1
0
        public bool AppFinConditionMet(IEnumerable <IAppFinRecord> appFinRecords)
        {
            var aFinCodes = new[] { 2, 4 };

            return(_learningDeliveryAppFinRecordQueryService.HasAnyLearningDeliveryAFinCodeForType(appFinRecords, ApprenticeshipFinancialRecord.Types.PaymentRecord, 2) &&
                   !_learningDeliveryAppFinRecordQueryService.HasAnyLearningDeliveryAFinCodesForType(appFinRecords, ApprenticeshipFinancialRecord.Types.TotalNegotiatedPrice, aFinCodes));
        }
 public bool PMRConditionMet(IEnumerable <IAppFinRecord> appFinRecords)
 {
     return(_learningDeliveryAppFinRecordQueryService
            .HasAnyLearningDeliveryAFinCodeForType(appFinRecords, ApprenticeshipFinancialRecord.Types.PaymentRecord, 1));
 }
 public bool AppFinConditionMet(IEnumerable <IAppFinRecord> appFinRecords)
 {
     return(!_learningDeliveryAppFinRecordQueryService.HasAnyLearningDeliveryAFinCodeForType(appFinRecords, _afinType, _aFinCode));
 }