Exemple #1
0
        public void T6_UpdateAll()
        {
            //Arrange
            DateTime Date1    = new DateTime(2016, 08, 01);
            Student  student1 = new Student("Jon", "Jone", "*****@*****.**", "/img/jon.jpg", Date1);

            student1.Save();

            Student currentStudent = new Student("Jon", "Jone", "*****@*****.**", "/img/jon.jpg", Date1, student1.GetId());

            //Act
            student1.UpdateAll(currentStudent);
            //  student1.UpdateAll(currentStudent);
            // static void .. error CS0176: Member 'Student.UpdateAll(Student)' cannot be accessed with an instance reference; qualify it with a type name instead
            //Assert
            Assert.Equal(currentStudent, student1);
        }