public void GetOnlyCohortThatIsFullTimeAndPrimaryInstructorBirthdayInTheFuture()
        {
            //var ActualCohort = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var ActualCohort = PracticeData.Single(cohort => cohort.FullTime == true & cohort.PrimaryInstructor.Birthday > DateTime.Now);

            Assert.AreEqual(ActualCohort, CohortBuilder.Cohort2);
        }
        public void GetOnlyCohortWithThreeJuniorInstructors()
        {
            //var ActualCohort = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var ActualCohort = PracticeData.Single(cohort => cohort.JuniorInstructors.Count() == 3);

            Assert.AreEqual(ActualCohort, CohortBuilder.Cohort3);
        }
 public void GetOnlyCohortWith2JuniorInstructorsOrThrowException()
 {
     var shouldThrowException = PracticeData.Single(c => c.JuniorInstructors.Count == 2);
 }
 public void GetOnlyCohortThatIsBothNotActiveAndNotFullTimeOrThrowException()
 {
     var shouldThrowException = PracticeData.Single(c => c.Active == false && c.FullTime == false);
 }
        public void GetOnlyCohortThatIsFullTimeAndPrimaryInstructorBirthdayInTheFuture()
        {
            var ActualCohort = PracticeData.Single(c => c.FullTime == true && c.PrimaryInstructor.Birthday > DateTime.Now);

            Assert.AreEqual(ActualCohort, CohortBuilder.Cohort2);
        }
        public void GetOnlyCohortWithThreeJuniorInstructors()
        {
            var ActualCohort = PracticeData.Single(c => c.JuniorInstructors.Count == 3);

            Assert.AreEqual(ActualCohort, CohortBuilder.Cohort3);
        }
Exemple #7
0
        public void GetOnlyCohortWithInstructorNamedZeldaOrNull()
        {
            var ActualCohort = PracticeData.Single(cohort => cohort.PrimaryInstructor.FirstName == "Zelda");

            Assert.IsNull(ActualCohort);
        }
 public void GetOnlyCohortThatIsBothNotActiveAndNotFullTimeOrThrowException()
 {
     var shouldThrowException = PracticeData.Single(c => { return(!c.FullTime && !c.Active); });
 }
 public void GetOnlyCohortThatIsBothNotActiveAndNotFullTimeOrThrowException()
 {
     var shouldThrowException = PracticeData.Single(cohort => !cohort.Active && !cohort.FullTime);
 }
        public void GetOnlyCohortThatIsFullTimeAndPrimaryInstructorBirthdayInTheFuture()
        {
            var ActualCohort = PracticeData.Single(cohort => cohort.FullTime && cohort.PrimaryInstructor.Birthday.Year > 2018);

            Assert.AreEqual(ActualCohort, CohortBuilder.Cohort2);
        }
 public void GetOnlyCohortWith2JuniorInstructorsOrThrowException()
 {
     //var shouldThrowException = PracticeData/*FILL IN LINQ EXPRESSION*/;
     var shouldThrowException = PracticeData.Single(cohort => cohort.JuniorInstructors.Count() == 2);
 }
 public void GetOnlyCohortThatIsBothNotActiveAndNotFullTimeOrThrowException()
 {
     //var shouldThrowException = PracticeData/*FILL IN LINQ EXPRESSION*/;
     var shouldThrowException = PracticeData.Single(cohort => cohort.Active == false & cohort.FullTime == false);
 }
Exemple #13
0
        public void GetOnlyCohortThatIsFullTimeAndPrimaryInstructorBirthdayInTheFuture()
        {
            var ActualCohort = PracticeData.Single(cohort => cohort.FullTime == true && cohort.PrimaryInstructor.Birthday.Year > new DateTime(2018, 1, 1).Year); /*FILL IN LINQ EXPRESSION*/;

            Assert.AreEqual(ActualCohort, CohortBuilder.Cohort2);
        }