public void DefaultConstructor_SetsFirstName_WhenCalled() { // Arrange // Act var sut = new PersonForResponse(); // Assert Assert.Equal(string.Empty, sut.FirstName); }
public void DefaultConstructor_SetsId_WhenCalled() { // Arrange // Act var sut = new PersonForResponse(); // Assert Assert.Equal(0, sut.Id); }
public void Constructor_SetsProperties_WhenCalled([NotNull] IPerson person) { // Arrange // Act var sut = new PersonForResponse(person); // Assert Assert.Equal(person.Id, sut.Id); // todo add string to show which test is failling Assert.Equal(person.FirstName, sut.FirstName); Assert.Equal(person.Surname, sut.Surname); Assert.Equal(person.DateOfBirth.ToShortDateString(), sut.DateOfBirth); Assert.Equal(person.Sex, sut.Sex); Assert.Equal(person.Email, sut.Email); }