Пример #1
0
        public void GetAllPrimaryInstructorFirstNames()
        {
            var expected = PracticeData.Select(cohort => cohort.PrimaryInstructor.FirstName).ToList(); /*FILL IN LINQ EXPRESSION*/

            CollectionAssert.AreEqual(expected, new List <string> {
                "Jurnell", "Zachary", "Blaise", "Kate"
            });
        }
Пример #2
0
        public void GetAllCohortNames()
        {
            var expected = PracticeData.Select(cohort => cohort.Name).ToList(); /*FILL IN LINQ EXPRESSION*/

            CollectionAssert.AreEqual(expected, new List <string> {
                "Evening Five", "Cohort of the Future", "Evening Ninja Warriors", "Day Backgammon Geeks"
            });
        }
Пример #3
0
        public void GetAllPrimaryInstructorsInAllCohorts()
        {
            var expected = PracticeData.Select(cohort => cohort.PrimaryInstructor).ToList(); /*FILL IN LINQ EXPRESSION*/

            CollectionAssert.AreEqual(expected, new List <Instructor> {
                CohortBuilder.Instructor2, CohortBuilder.Instructor6, CohortBuilder.Instructor3, CohortBuilder.Instructor1
            });
        }
Пример #4
0
        public void GetAllCohortNames()
        {
            var expected = PracticeData.Select(c => { return(c.Name); }).ToList();

            CollectionAssert.AreEqual(expected, new List <string> {
                "Evening Five", "Cohort of the Future", "Evening Ninja Warriors", "Day Backgammon Geeks"
            });
        }
Пример #5
0
        public void GetAllPrimaryInstructorFirstNames()
        {
            var expected = PracticeData.Select(c => { return(c.PrimaryInstructor.FirstName); }).ToList();

            CollectionAssert.AreEqual(expected, new List <string> {
                "Jurnell", "Zachary", "Blaise", "Kate"
            });
        }
Пример #6
0
        public void GetAllPrimaryInstructorsInAllCohorts()
        {
            var expected = PracticeData.Select(c => { return(c.PrimaryInstructor); }).ToList();

            CollectionAssert.AreEqual(expected, new List <Instructor> {
                CohortBuilder.Instructor2, CohortBuilder.Instructor6, CohortBuilder.Instructor3, CohortBuilder.Instructor1
            });
        }
        public void GetAllStudents()
        {
            var expected = PracticeData.Select(c => c.Students).ToList();

            CollectionAssert.AreEqual(expected, new List <Student> {
                CohortBuilder.Student1, CohortBuilder.Student2, CohortBuilder.Student3, CohortBuilder.Student4, CohortBuilder.Student5, CohortBuilder.Student6, CohortBuilder.Student7, CohortBuilder.Student8, CohortBuilder.Student9, CohortBuilder.Student10, CohortBuilder.Student11, CohortBuilder.Student12, CohortBuilder.Student13, CohortBuilder.Student14, CohortBuilder.Student15, CohortBuilder.Student16, CohortBuilder.Student17, CohortBuilder.Student18, CohortBuilder.Student19, CohortBuilder.Student20
            });
        }