Exemple #1
0
        public void Enroll(string FName, string MName, string LName, string Course, Section section)
        {
            stud.FirstName = FName;

            stud.MiddleName = MName;

            stud.LastName = LName;

            stud.Course = Course;

            stud.Section = section;

            StudAccess.AddStudent(stud);
        }
Exemple #2
0
        public void AddStudent_ShouldWork()
        {
            Student newStud = new Student()
            {
                FirstName  = "Arnold",
                MiddleName = "Villaruel",
                LastName   = "Mendoza",
                Course     = "BSIT",
                Section    = section,
                Email      = "*****@*****.**"
            };

            studAccess.AddStudent(newStud);
            var actual = studAccess.StudentList;

            Assert.Contains(newStud, actual);
        }