public void Find_RetrievesStudentFromDB_()
        {
            Student newStudent = new Student("Fran", DateTime.Today);

            newStudent.Save();

            Student result = Student.Find(newStudent.GetId());

            Assert.Equal(newStudent, result);
        }
Exemplo n.º 2
0
        public void Test_Find_ReturnStudentFromDatabase()
        {
            //Arrange
            Student testStudent = firstStudent;

            testStudent.Save();

            //Act
            Student foundStudent = Student.Find(testStudent.GetId());

            //Assert
            Assert.Equal(testStudent, foundStudent);
        }