Beispiel #1
0
        public void AddsGetsTutors_AddsAndGetsAssociatedTutorsFromDb_TutorList()
        {
            Specialty newSpecialty = new Specialty("Chemistry", "Science");

            newSpecialty.Save();
            Tutor newTutor = new Tutor("Sean", "Miller", "*****@*****.**", "1234567890", 1, true, "Weekends", 25.00);

            newTutor.Save();
            newSpecialty.AddTutor(newTutor);
            List <Tutor> expectedList = new List <Tutor> {
                newTutor
            };
            List <Tutor> actualList = newSpecialty.GetTutors();

            CollectionAssert.AreEqual(expectedList, actualList);
        }