示例#1
0
 /// <summary>
 /// Determines whether [is primary learning aim] [this delivery].
 /// </summary>
 /// <param name="thisDelivery">this delivery.</param>
 /// <returns>
 ///   <c>true</c> if [is primary learning aim] [this delivery]; otherwise, <c>false</c>.
 /// </returns>
 public bool IsPrimaryLearningAim(ILearningDelivery thisDelivery) =>
 _check.InApprenticeship(thisDelivery) &&
 _check.InAProgramme(thisDelivery);
示例#2
0
 /// <summary>
 /// Determines whether the specified delivery is a candidate.
 /// </summary>
 /// <param name="delivery">The delivery.</param>
 /// <returns>
 ///   <c>true</c> if the specified delivery is a candidate; otherwise, <c>false</c>.
 /// </returns>
 public bool IsACandidate(ILearningDelivery delivery) =>
 _check.InApprenticeship(delivery) &&
 _check.InAProgramme(delivery) &&
 _check.HasQualifyingStart(delivery, FirstViableDate);
 /// <summary>
 /// Determines whether the specified delivery is excluded.
 /// </summary>
 /// <param name="delivery">The delivery.</param>
 /// <returns>
 ///   <c>true</c> if the specified delivery is excluded; otherwise, <c>false</c>.
 /// </returns>
 public bool IsExcluded(ILearningDelivery delivery) =>
 _check.IsRestart(delivery) ||
 _check.InApprenticeship(delivery);
 /// <summary>
 /// Determines whether the specified delivery is excluded.
 /// </summary>
 /// <param name="delivery">The delivery.</param>
 /// <returns>
 ///   <c>true</c> if the specified delivery is excluded; otherwise, <c>false</c>.
 /// </returns>
 public bool IsExcluded(ILearningDelivery delivery) =>
 _check.IsRestart(delivery) ||
 _check.IsLearnerInCustody(delivery) ||
 _check.IsSteelWorkerRedundancyTraining(delivery) ||
 _check.InApprenticeship(delivery);
示例#5
0
 /// <summary>
 /// Determines whether [is not valid] [this delivery].
 /// </summary>
 /// <param name="thisDelivery">this delivery.</param>
 /// <param name="earliestStart">The earliest start.</param>
 /// <returns>
 ///   <c>true</c> if [is not valid] [this delivery]; otherwise, <c>false</c>.
 /// </returns>
 public bool IsNotValid(ILearningDelivery thisDelivery, DateTime?earliestStart) =>
 !IsExcluded(thisDelivery) &&
 _check.IsComponentOfAProgram(thisDelivery) &&
 _check.InApprenticeship(thisDelivery) &&
 !It.IsEmpty(earliestStart) &&
 !HasQualifyingFrameworkAim(FilteredFrameworkAimsFor(thisDelivery, GetQualifyingFrameworksFor(thisDelivery)), earliestStart.Value);
示例#6
0
 /// <summary>
 /// Determines whether the specified delivery is excluded.
 /// </summary>
 /// <param name="delivery">The delivery.</param>
 /// <returns>
 ///   <c>true</c> if the specified delivery is excluded; otherwise, <c>false</c>.
 /// </returns>
 public bool IsExcluded(ILearningDelivery delivery) =>
 _check.IsRestart(delivery) ||
 _check.IsLearnerInCustody(delivery) ||
 _check.IsSteelWorkerRedundancyTraining(delivery) ||
 _check.InApprenticeship(delivery) ||
 IsSpecialistDesignatedCollege();