public void HasLearnerFAMType_True() { var learnerFams = SetupLearnerFams(); var queryService = new LearnerFAMQueryService(); queryService.HasLearnerFAMType(learnerFams, "FamA"); }
public void HasLearnerFAMType_False() { var learnerFams = SetupLearnerFams(); var queryService = new LearnerFAMQueryService(); queryService.HasLearnerFAMType(learnerFams, "TYPENOTFOUND"); }
public void HasAnyLearnerFAMCodesForType_False_CodesNull() { var learnerFams = SetupLearnerFams(); var queryService = new LearnerFAMQueryService(); queryService.HasAnyLearnerFAMCodesForType(learnerFams, "FamB", null).Should().BeFalse(); }
public void HasLearnerFAMCodeForType_FalseMismatch() { var learnerFams = SetupLearnerFams(); var queryService = new LearnerFAMQueryService(); queryService.HasLearnerFAMCodeForType(learnerFams, "FamA", 99999).Should().BeFalse(); }
public void HasLearnerFAMCodeForType_True() { var learnerFams = SetupLearnerFams(); var queryService = new LearnerFAMQueryService(); queryService.HasLearnerFAMCodeForType(learnerFams, "FamB", 2).Should().BeTrue(); }
public void HasAnyLearnerFAMCodesForType_False_Mismatch() { var learnerFams = SetupLearnerFams(); var queryService = new LearnerFAMQueryService(); queryService.HasAnyLearnerFAMCodesForType(learnerFams, "FamA", new long[] { 2, 3 }).Should().BeFalse(); }
public void HasAnyLearnerFAMCodesForType_True() { var learnerFams = SetupLearnerFams(); var codes = new long[] { 1, 3 }; var queryService = new LearnerFAMQueryService(); queryService.HasAnyLearnerFAMCodesForType(learnerFams, "FamC", codes).Should().BeTrue(); }
public void ConditionMet_True(long famCode) { var learnerFamQueryService = new LearnerFAMQueryService(); var learnerFams = new[] { new TestLearnerFAM() { LearnFAMType = "MCF", LearnFAMCodeNullable = famCode } }; var rule = new MathGrade_04Rule(null, learnerFamQueryService); rule.ConditionMet("XYZ", learnerFams).Should().BeTrue(); }
public void ConditionMet_False(long?alsCost, string famType) { var learnerFamQueryService = new LearnerFAMQueryService(); var fams = new List <TestLearnerFAM>() { new TestLearnerFAM() { LearnFAMType = famType } }; var rule = NewRule(learnerFamQueryService); rule.ConditionMet(alsCost, fams).Should().BeFalse(); }
public void ConditionMet_True() { var learnerFamQueryService = new LearnerFAMQueryService(); var learnerFams = new[] { new TestLearnerFAM() { LearnFAMType = "XYZ" } }; var rule = NewRule(learnerFamQueryService); rule.ConditionMet(10, learnerFams).Should().BeTrue(); }
public void HasLearnerFAMType_False_NullLearnerFams() { var queryService = new LearnerFAMQueryService(); queryService.HasLearnerFAMType(null, It.IsAny <string>()); }
public void HasLearnerFAMCodeForType_NullLearnerFams() { var queryService = new LearnerFAMQueryService(); queryService.HasLearnerFAMCodeForType(null, "FamB", 2).Should().BeFalse(); }
public void HasAnyLearnerFAMCodesForType_NullFams() { var queryService = new LearnerFAMQueryService(); queryService.HasAnyLearnerFAMCodesForType(null, "FamB", It.IsAny <List <long> >()).Should().BeFalse(); }