public void MapServerResponseToRequest() { var mapper = new ApiAdminServerModelMapper(); var model = new ApiAdminServerResponseModel(); model.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", 1); ApiAdminServerRequestModel response = mapper.MapServerResponseToRequest(model); response.Should().NotBeNull(); response.Birthday.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.LastName.Should().Be("A"); response.Phone.Should().Be("A"); response.UserId.Should().Be(1); }
public void MapServerResponseToRequest() { var mapper = new ApiAdminServerModelMapper(); var model = new ApiAdminServerResponseModel(); model.SetProperties(1, "A", "A", "A", "A", "A", "A"); ApiAdminServerRequestModel response = mapper.MapServerResponseToRequest(model); response.Should().NotBeNull(); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.LastName.Should().Be("A"); response.Password.Should().Be("A"); response.Phone.Should().Be("A"); response.Username.Should().Be("A"); }