public void DeveRetornarPreenchidoQuandoPreenchido() { var entity = UserMock.Create(); var expected = UserDtoMock.Create(); var actual = mapper.ToMap(entity); AssertEqual(expected, actual); }
public void DeveGerarUserPreenchido() { var expected = UserMock.Create(); var actual = UserBuilder.GetInstance() .SetName(data.Name) .SetRoom(RoomMock.Create()) .ToBuild(); actual.Name.Should().Be(expected.Name); actual.RoomId.Should().Be(expected.RoomId); actual.Room.Id.Should().Be(expected.Room.Id); actual.Room.Uuid.Should().Be(expected.Room.Uuid); actual.Room.Name.Should().Be(expected.Room.Name); }