Ejemplo n.º 1
0
        public void DoAllActiveCohortsHavePrimaryInstructorsWithFirstNamesThatContainTheLetterA()
        {
            //var doAll = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAll = PracticeData.All(cohort => cohort.Active == true && cohort.PrimaryInstructor.FirstName.Contains("A"));

            Assert.IsFalse(doAll); //<-- change false to doAll
        }
Ejemplo n.º 2
0
        public void DoAllActiveCohortsHavePrimaryInstructorsWithFirstNamesThatContainTheLetterA()
        {
            var doAll = PracticeData.All(c => c.Active == true && c.PrimaryInstructor.FirstName.Contains('a')); /*FILL IN LINQ EXPRESSION*/;

            Console.WriteLine(doAll);
            Assert.IsFalse(doAll); //<-- change false to doAll
        }
Ejemplo n.º 3
0
        public void DoAllCohortsHavePrimaryInstructorsBornIn1980s()
        {
            //var doAll = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAll = PracticeData.All(cohort => cohort.PrimaryInstructor.Birthday.Year < 1979 && cohort.PrimaryInstructor.Birthday.Year > 1990);

            Assert.IsFalse(doAll); //<-- change true to doAll
        }
Ejemplo n.º 4
0
        public void DoAllCohortsHaveActivePrimaryInstructors()
        {
            //var doAll = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAll = PracticeData.All(cohort => cohort.PrimaryInstructor.Active == true);

            Assert.IsTrue(doAll); //<-- change true to doAll
        }
Ejemplo n.º 5
0
        public void DoAllCohortsHaveTwoOrMoreJuniorInstructors()
        {
            //var doAll = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAll = PracticeData.All(cohort => cohort.JuniorInstructors.Count() >= 2);

            Assert.IsTrue(doAll); //<-- change false to doAll
        }
Ejemplo n.º 6
0
        public void DoAllCohortsFiveStudents()
        {
            //var doAll = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAll = PracticeData.All(cohort => cohort.Students.Count() == 5);

            Assert.IsTrue(doAll); //<-- change false to doAll
        }
Ejemplo n.º 7
0
        public void DoAllActiveCohortsHavePrimaryInstructorsWithFirstNamesThatContainTheLetterA()
        {
            //var doAll = PracticeData/*FILL IN LINQ EXPRESSION*/;
            var doAll = PracticeData.All(c => c.PrimaryInstructor.FirstName.ToLower().Contains("a"));

            //Assert.IsFalse(false); //<-- change false to doAll
            Assert.IsFalse(doAll);
        }
Ejemplo n.º 8
0
        public void DoAllCohortsHaveTwoOrMoreJuniorInstructors()
        {
            var doAll = PracticeData.All(c => c.JuniorInstructors.Count() >= 2);

            Assert.IsTrue(doAll); //<-- change false to doAll
        }
Ejemplo n.º 9
0
        public void DoAllActiveCohortsHavePrimaryInstructorsWithFirstNamesThatContainTheLetterA()
        {
            var doAll = PracticeData.All(cohort => cohort.PrimaryInstructor.FirstName.ToLower().Contains("a") == true && cohort.PrimaryInstructor.Active);

            Assert.IsFalse(doAll);
        }
Ejemplo n.º 10
0
        public void DoAllCohortsHaveActivePrimaryInstructors()
        {
            var doAll = PracticeData.All(cohort => cohort.PrimaryInstructor.Active);;

            Assert.IsTrue(doAll);
        }
Ejemplo n.º 11
0
        public void DoAllCohortsFiveStudents()
        {
            var doAll = PracticeData.All(cohort => cohort.Students.Count == 5);

            Assert.IsTrue(doAll);
        }
Ejemplo n.º 12
0
        public void DoAllCohortsHaveTwoOrMoreJuniorInstructors()
        {
            var doAll = PracticeData.All(cohort => cohort.JuniorInstructors.Count >= 2);

            Assert.IsTrue(doAll);
        }
Ejemplo n.º 13
0
        public void DoAllCohortsHavePrimaryInstructorsBornIn1980s()
        {
            var doAll = PracticeData.All(Cohort => Cohort.PrimaryInstructor.Birthday.Year < 1990 && Cohort.PrimaryInstructor.Birthday.Year > 1980);

            Assert.IsFalse(doAll);
        }
Ejemplo n.º 14
0
        public void DoAllCohortsHaveActivePrimaryInstructors()
        {
            var doAll = PracticeData.All(c => c.Active == true || false && c.PrimaryInstructor.Active == true);

            Assert.IsFalse(doAll); //<-- change true to doAll
        }
Ejemplo n.º 15
0
        public void DoAllActiveCohortsHavePrimaryInstructorsWithFirstNamesThatContainTheLetterA()
        {
            var doAll = PracticeData.All(p => p.PrimaryInstructor.FirstName.Contains('a'));

            Assert.IsFalse(doAll); //<-- change false to doAll
        }
Ejemplo n.º 16
0
        public void DoAllCohortsHavePrimaryInstructorsBornIn1980s()
        {
            var doAll = PracticeData.All(x => Enumerable.Range(1980, 1989).Contains(x.PrimaryInstructor.Birthday.Year));

            Assert.IsFalse(doAll); //<-- change true to doAll
        }
Ejemplo n.º 17
0
        public void DoAllActiveCohortsHavePrimaryInstructorsWithFirstNamesThatContainTheLetterA()
        {
            var doAll = PracticeData.All(Cohort => Cohort.PrimaryInstructor.FirstName.Contains("A") || Cohort.PrimaryInstructor.FirstName.Contains("a"));

            Assert.IsFalse(doAll);
        }
Ejemplo n.º 18
0
        public void DoAllCohortsFiveStudents()
        {
            var doAll = PracticeData.All(c => c.Students.Count() >= 5);

            Assert.IsTrue(doAll); //<-- change false to doAll
        }
Ejemplo n.º 19
0
        public void DoAllCohortsHavePrimaryInstructorsBornIn1980s()
        {
            var doAll = PracticeData.All(c => c.PrimaryInstructor.Birthday.Year >= 1980 && c.PrimaryInstructor.Birthday.Year <= 1989);

            Assert.IsFalse(doAll); //<-- change true to doAll
        }
Ejemplo n.º 20
0
        public void DoAllCohortsHavePrimaryInstructorsBornIn1980s()
        {
            var doAll = PracticeData.All(c => { return(c.PrimaryInstructor.Birthday.Year > 1979 && c.PrimaryInstructor.Birthday.Year < 1990); });

            Assert.IsFalse(doAll);
        }
Ejemplo n.º 21
0
        public void DoAllCohortsHaveActivePrimaryInstructors()
        {
            var doAll = PracticeData.All(cohort => cohort.PrimaryInstructor.Active = true);

            Assert.IsTrue(doAll); //<-- change true to doAll
        }
Ejemplo n.º 22
0
        public void DoAllCohortsHaveActivePrimaryInstructors()
        {
            var doAll = PracticeData.All(c => { return(c.PrimaryInstructor.Active); });

            Assert.IsTrue(doAll);
        }