/// <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 [is not valid] [the specified delivery]. /// </summary> /// <param name="delivery">The delivery.</param> /// <param name="deliveries">The using sources.</param> /// <returns> /// <c>true</c> if [is not valid] [the specified delivery]; otherwise, <c>false</c>. /// </returns> public bool IsNotValid(ILearningDelivery delivery, IReadOnlyCollection <ILearningDelivery> deliveries) => !_check.IsRestart(delivery) && // <= a singular exclusion clause _check.IsStandardApprencticeship(delivery) && delivery.AimType == TypeOfAim.ComponentAimInAProgramme && HasStandardCode(delivery) && !HasQualifyingPeriodOfValidity(GetStartFor(delivery, deliveries), GetPeriodsOfValidityFor(delivery));
/// <summary> /// Determines whether [is not valid] [the specified delivery]. /// </summary> /// <param name="thisDelivery">this delivery.</param> /// <returns> /// <c>true</c> if [is not valid] [the specified delivery]; otherwise, <c>false</c>. /// </returns> public bool IsNotValid(ILearningDelivery thisDelivery) => !_check.IsRestart(thisDelivery) && _check.IsStandardApprencticeship(thisDelivery) && _check.InAProgramme(thisDelivery) && It.Has(thisDelivery.StdCodeNullable) && !HasQualifyingStart(thisDelivery, GetStandardPeriodsOfValidityFor(thisDelivery));
/// <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);
/// <summary> /// Determines whether [is qualifying delivery] [this delivery]. /// </summary> /// <param name="thisDelivery">this delivery.</param> /// <returns> /// <c>true</c> if [is qualifying delivery] [this delivery]; otherwise, <c>false</c>. /// </returns> public bool IsQualifyingDelivery(ILearningDelivery thisDelivery) => !_check.IsRestart(thisDelivery);
/// <summary> /// Determines whether this delivery is excluded. /// </summary> /// <param name="thisDelivery">this delivery.</param> /// <returns> /// <c>true</c> if this delivery is excluded; otherwise, <c>false</c>. /// </returns> public bool IsExcluded(ILearningDelivery thisDelivery) => _check.IsStandardApprencticeship(thisDelivery) || _check.IsRestart(thisDelivery);
/// <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();