public void GetFirstCohortWith2JuniorInstructors() { var ActualCohort = PracticeData.First(cohort => cohort.JuniorInstructors.Count == 2) /*FILL IN LINQ EXPRESSION*/; Assert.AreEqual(ActualCohort, CohortBuilder.Cohort1); }
public void GetFirstCohortWherePrimaryInstructorIsKate() { var ActualCohort = PracticeData.First(I => I.PrimaryInstructor.FirstName.Contains("Kate")); Assert.AreEqual(ActualCohort, CohortBuilder.Cohort4); }
public void GetFirstCohortThatIsFullTimeAndPrimaryInstructorBirthdayInTheFuture() { var ActualCohort = PracticeData.First(cohort => cohort.FullTime && cohort.PrimaryInstructor.Birthday > DateTime.Now) /*FILL IN LINQ EXPRESSION*/; Assert.AreEqual(ActualCohort, CohortBuilder.Cohort2); }
public void GetFirstCohortThatIsBothNotActiveAndNotFullTimeOrThrowException() { var shouldThrowException = PracticeData.First(cohort => !cohort.FullTime && !cohort.Active) /*FILL IN LINQ EXPRESSION*/; }
public void GetFirstCohortThatIsBothNotActiveAndNotFullTimeOrThrowException() { var shouldThrowException = PracticeData.First(c => c.Active == false && c.FullTime == false); }
public void GetFirstCohortWherePrimaryInstructorIsKate() { var ActualCohort = PracticeData.First(cohort => cohort.PrimaryInstructor.FirstName == "Kate") /*FILL IN LINQ EXPRESSION*/; Assert.AreEqual(ActualCohort, CohortBuilder.Cohort4); }
public void GetFirstCohortThatIsBothNotActiveAndNotFullTimeOrThrowException() { var shouldThrowException = PracticeData.First(c => { return(!c.Active && !c.FullTime); }); }
public void GetFirstCohortThatIsBothNotActiveAndNotFullTimeOrThrowException() { //var shouldThrowException = PracticeData/*FILL IN LINQ EXPRESSION*/; var shouldThrowException = PracticeData.First(Cohort => Cohort.Active == false && Cohort.FullTime == false); }
public void GetFirstCohortThatIsFullTimeAndPrimaryInstructorBirthdayInTheFuture() { var ActualCohort = PracticeData.First(c => { return(c.FullTime && c.PrimaryInstructor.Birthday > DateTime.Now); }); Assert.AreEqual(ActualCohort, CohortBuilder.Cohort2); }
public void GetFirstCohortWithThreeJuniorInstructors() { var ActualCohort = PracticeData.First(c => { return(c.JuniorInstructors.Count == 3); }); Assert.AreEqual(ActualCohort, CohortBuilder.Cohort3); }
public void GetFirstCohortWherePrimaryInstructorIsKate() { var ActualCohort = PracticeData.First(c => { return(c.PrimaryInstructor.FirstName == "Kate"); }); Assert.AreEqual(ActualCohort, CohortBuilder.Cohort4); }
public void GetFirstCohortWithInstructorNamedZeldaOrNull() { var ActualCohort = PracticeData.First(cohort => cohort.PrimaryInstructor.FirstName == "Zelda"); Assert.IsNull(ActualCohort); //doesn't check for null though }
public void GetFirstCohortThatIsFullTimeAndPrimaryInstructorBirthdayInTheFuture() { var ActualCohort = PracticeData.First(cohort => cohort.FullTime && cohort.PrimaryInstructor.Birthday.Year > 2018); Assert.AreEqual(ActualCohort, CohortBuilder.Cohort2); }