예제 #1
0
 public bool HasStartedAfterStopDate(IFcsContractAllocation theAllocation, ILearningDelivery theDelivery) =>
 theDelivery.LearnStartDate >= theAllocation.StopNewStartsFromDate;
 /// <summary>
 /// Determines whether [has qualifying start] [the specified this delivery].
 /// </summary>
 /// <param name="thisDelivery">this delivery.</param>
 /// <param name="allocation">The allocation.</param>
 /// <returns>
 ///   <c>true</c> if [has qualifying start] [the specified this delivery]; otherwise, <c>false</c>.
 /// </returns>
 public bool HasQualifyingStart(ILearningDelivery thisDelivery, IFcsContractAllocation allocation) =>
 It.Has(allocation) &&
 It.Has(allocation.StartDate) &&
 _check.HasQualifyingStart(thisDelivery, allocation.StartDate.Value);
예제 #3
0
 public bool HasFundingRelationship(IFcsContractAllocation theAllocation) =>
 _fundingStreams.Contains(theAllocation.FundingStreamPeriodCode);
 public bool HasQualifyingStart(ILearningDelivery thisDelivery, IFcsContractAllocation allocation) =>
 allocation != null &&
 allocation.StartDate.HasValue &&
 _dateTimeQueryService.IsDateBetween(thisDelivery.LearnStartDate, allocation.StartDate.Value, DateTime.MaxValue);
 public bool HasFundingRelationship(IFcsContractAllocation theAllocation) =>
 theAllocation.FundingStreamPeriodCode.CaseInsensitiveEquals(FundingStreamPeriodCodeConstants.C16_18TRN2021);
 /// <summary>
 /// Determines whether [has qualifying funding stream] [the specified allocation].
 /// </summary>
 /// <param name="allocation">The allocation.</param>
 /// <returns>
 ///   <c>true</c> if [has qualifying funding stream] [the specified allocation]; otherwise, <c>false</c>.
 /// </returns>
 public bool HasQualifyingFundingStream(IFcsContractAllocation allocation) =>
 It.IsInRange(
     allocation.FundingStreamPeriodCode,
     FundingStreamPeriodCodeConstants.ALLB1819,
     FundingStreamPeriodCodeConstants.ALLBC1819);
 /// <summary>
 /// Determines whether [has qualifying provider identifier] [the specified allocation].
 /// </summary>
 /// <param name="allocation">The allocation.</param>
 /// <param name="providerID">The provider identifier.</param>
 /// <returns>
 ///   <c>true</c> if [has qualifying provider identifier] [the specified allocation]; otherwise, <c>false</c>.
 /// </returns>
 public bool HasQualifyingProviderID(IFcsContractAllocation allocation, int providerID) =>
 allocation.DeliveryUKPRN == providerID;
 public bool HasQualifyingFundingStream(IFcsContractAllocation allocation) =>
 allocation.FundingStreamPeriodCode.CaseInsensitiveEquals(FundingStreamPeriodCodeConstants.ALLB2021) ||
 allocation.FundingStreamPeriodCode.CaseInsensitiveEquals(FundingStreamPeriodCodeConstants.ALLBC2021);