示例#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 AppFinRecordConditionMet(ILearningDelivery learningDelivery)
 {
     return(!_appFinRecordQueryService.HasAnyLearningDeliveryAFinCodesForType(
                learningDelivery.AppFinRecords,
                ApprenticeshipFinancialRecord.Types.TotalNegotiatedPrice,
                _tnpCodes));
 }
 public virtual bool HasAssessmentPrice(ILearningDelivery learningDelivery)
 {
     return(_appFinRecordQueryService.HasAnyLearningDeliveryAFinCodesForType(
                learningDelivery?.AppFinRecords,
                ApprenticeshipFinancialRecord.Types.TotalNegotiatedPrice,
                _tnpCodes));
 }
        public bool ConditionMet(string epaOrgID, IEnumerable <IAppFinRecord> appFinRecords)
        {
            var appFinCodes = new[] { 2, 4 };

            return(!string.IsNullOrWhiteSpace(epaOrgID) &&
                   !_learningDeliveryAppFinRecordQueryService
                   .HasAnyLearningDeliveryAFinCodesForType(appFinRecords, ApprenticeshipFinancialRecord.Types.TotalNegotiatedPrice, appFinCodes));
        }
        public bool TNPConditionMet(IEnumerable <IAppFinRecord> appFinRecords)
        {
            var aFinCodes = new int[] { 1, 3 };

            return
                (!_learningDeliveryAppFinRecordQueryService
                 .HasAnyLearningDeliveryAFinCodesForType(appFinRecords, ApprenticeshipFinancialRecord.Types.TotalNegotiatedPrice, aFinCodes));
        }
示例#6
0
 public bool AppFinRecordConditionMet(IEnumerable <IAppFinRecord> appFinRecords)
 {
     return(_appFindRecordQueryService.HasAnyLearningDeliveryAFinCodesForType(
                appFinRecords, _aFinType, _appFinCodes));
 }