public void TransformStudentToStudentDTO_StudentIdExists_ReturnStudent() { //Arrange Student student = generator.CreateStudent("John", "Doe", "Doe", "Doe"); //Act var result = TransformToDTO.TransformStudentToStudentDTO(student); //Assert Assert.That(result, Is.Not.Null); Assert.IsInstanceOf(typeof(StudentDTO), result); Assert.AreEqual(result.id, student.ID); }
public void TransformInstructorToInstructorDTO_InstructorIdExists_ReturnInstructor() { //Arrange Instructor instructor = generator.CreateInstructor("John", "Doe", "Doe", "Doe"); //Act var result = TransformToDTO.TransformInstructorToInstructorDTO(instructor); //Assert Assert.That(result, Is.Not.Null); Assert.IsInstanceOf(typeof(InstructorDTO), result); Assert.AreEqual(result.instructorId, instructor.ID); }