public void AreAnyCohortsBothFullTimeAndNotActive()
        {
            //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAny = PracticeData.Any(cohort => cohort.FullTime == true && cohort.Active == false);

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
        public void DoAnyActiveCohortsHave3JuniorInstructors()
        {
            //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAny = PracticeData.Any(cohort => cohort.JuniorInstructors.Count() == 3);

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
        public void DoAnyCohortsHaveActivePrimaryInstructors()
        {
            //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAny = PracticeData.Any(cohort => cohort.PrimaryInstructor.Active == true);

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
        public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s()
        {
            //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAny = PracticeData.Any(cohort => cohort.PrimaryInstructor.Birthday.Year >= 1980 & cohort.PrimaryInstructor.Birthday.Year >= 1989);

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
        public void AreAnyCohortsBothFullTimeAndNotActive()
        {
            //var doAny = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAny = PracticeData.Any(c => c.FullTime && !c.Active);

            //Assert.IsTrue(false); //<-- change false to doAny
            Assert.IsTrue(doAny);
        }
Esempio n. 6
0
        public void DoAnyCohortsHaveActivePrimaryInstructors()
        {
            var doAny = PracticeData.Any(cohort => cohort.PrimaryInstructor.Active);

            Assert.IsTrue(doAny);
        }
Esempio n. 7
0
        public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s()
        {
            var doAny = PracticeData.Any(cohort => cohort.PrimaryInstructor.Birthday.Year >= 1980 && cohort.PrimaryInstructor.Birthday.Year < 1990);

            Assert.IsTrue(doAny);
        }
Esempio n. 8
0
        public void AreAnyCohortsBothFullTimeAndNotActive()
        {
            var doAny = PracticeData.Any(c => c.FullTime && c.Active == false);

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
Esempio n. 9
0
        public void DoAnyActiveCohortsHave3JuniorInstructors()
        {
            var doAny = PracticeData.Any(c => c.Active && c.JuniorInstructors.Count == 3);

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
Esempio n. 10
0
        public void DoAnyCohortsHaveActivePrimaryInstructors()
        {
            var doAny = PracticeData.Any(c => c.PrimaryInstructor.Active == true);

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
Esempio n. 11
0
        public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s()
        {
            var doAny = PracticeData.Any(c => c.PrimaryInstructor.Birthday.Year >= 1980 && c.PrimaryInstructor.Birthday.Year < 1990);

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
        public void AreAnyCohortsBothFullTimeAndNotActive()
        {
            var doAny = PracticeData.Any(x => x.Active == false && x.FullTime); /*FILL IN LINQ EXPRESSION*/;

            Assert.IsTrue(doAny); //<-- change false to doAny
        }
Esempio n. 13
0
        public void AreAnyCohortsBothFullTimeAndNotActive()
        {
            var doAny = PracticeData.Any(c => { return(!c.Active && c.FullTime); });

            Assert.IsTrue(doAny);
        }
Esempio n. 14
0
        public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s()
        {
            var doAny = PracticeData.Any(c => { int year = c.PrimaryInstructor.Birthday.Year; return(year < 1990 && year > 1979); });

            Assert.IsTrue(doAny);
        }
Esempio n. 15
0
        public void DoAnyActiveCohortsHave3JuniorInstructors()
        {
            var doAny = PracticeData.Any(cohort => cohort.Active && cohort.JuniorInstructors.Count == 3);

            Assert.IsTrue(doAny);
        }
Esempio n. 16
0
        public void AreAnyCohortsBothFullTimeAndNotActive()
        {
            var doAny = PracticeData.Any(cohort => cohort.FullTime && cohort.Active == false);

            Assert.IsTrue(doAny);
        }
Esempio n. 17
0
        public void DoAnyCohortsHavePrimaryInstructorsBornIn1980s()
        {
            var doAny = PracticeData.Any(x => Enumerable.Range(1980, 1989).Contains(Convert.ToInt32(x.PrimaryInstructor.Birthday.ToString("yyyy"))));

            Assert.IsTrue(doAny); //<-- change false to doAny
        }