private bool HasSingleMatchForPriceEpisodeAndCommitment(string priceEpisodeIdentifier) { var result = EarningEventsHelper .PayableEarningsReceivedForLearner(TestSession) .Count(x => x.PriceEpisodes.Any(y => y.Identifier == priceEpisodeIdentifier)) == 1; return(result); }
private bool HasNoEarningEventMatch(string priceEpisodeIdentifier) { var result = !EarningEventsHelper.PayableEarningsReceivedForLearner(TestSession) .Any(x => x.PriceEpisodes.Any(y => y.Identifier == priceEpisodeIdentifier) && x.OnProgrammeEarnings.Any(d => d.Periods.Any(p => p.Amount != 0)) && x.IncentiveEarnings.Any(d => d.Periods.Any(p => p.Amount != 0))); return(result); }
private bool HasPayableEarningEventsForPriceEpisode(string priceEpisodeIdentifier) { return(EarningEventsHelper.PayableEarningsReceivedForLearner(TestSession) .Any(x => x.PriceEpisodes.Any(y => y.Identifier == priceEpisodeIdentifier))); }