예제 #1
0
        public void RegistrationTimeConstructor_ShouldReturnValidTime()
        {
            // Arrange
            string expectedResult = "11:12 05/04/2000";

            // Act
            var    registrationTime = new RegistrationTime("11:12 05/04/2000");
            string actualResult     = registrationTime.ToString();

            // Assert
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #2
0
 public override string ToString()
 {
     return(String.Format("ID:{0}, Firstname: {1},  Lastname: {2}, Phone number: " +
                          "{3}, Email: {4}, Data of Registration: {5}",
                          PersonId, PersonFirstname, PersonLastname, PhoneNumber, Email, RegistrationTime.ToString()));
 }