public void GetFullNameAndLocation() { var student = new Student(); student.StudentNumber = 10; student.SetName("John"); student.SetLastName("Lennon"); student.SetLocation(new Location()); var expectedString = "John Lennon: (0, 0)"; Assert.AreEqual(expectedString, student.GetFullNameAndLocation()); }
public void AddStudentCoordinates() { IStudentLogic studentOperations = DummyProvider.GetInstance.GetStudentOperations(); string documentNumber = "1234567-8"; Student firstStudent = new Student(Utility.GetRandomName(), Utility.GetRandomLastName(), documentNumber); studentOperations.AddStudent(firstStudent); Student studentFound = studentOperations.GetStudentByDocumentNumber(documentNumber); double latitud = 1.2; double longitud = 2.2; Location location = new Location(latitud, longitud); studentFound.SetLocation(location); Assert.IsTrue(studentFound.GetLocation().Equals(location)); }