public virtual ApiPostHistoryServerRequestModel MapServerResponseToRequest(
            ApiPostHistoryServerResponseModel response)
        {
            var request = new ApiPostHistoryServerRequestModel();

            request.SetProperties(
                response.Comment,
                response.CreationDate,
                response.PostHistoryTypeId,
                response.PostId,
                response.RevisionGUID,
                response.Text,
                response.UserDisplayName,
                response.UserId);
            return(request);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALPostHistoryMapper();
            ApiPostHistoryServerRequestModel model = new ApiPostHistoryServerRequestModel();

            model.SetProperties("A", DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, "A", "A", "A", 1);
            PostHistory response = mapper.MapModelToEntity(1, model);

            response.Comment.Should().Be("A");
            response.CreationDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.PostHistoryTypeId.Should().Be(1);
            response.PostId.Should().Be(1);
            response.RevisionGUID.Should().Be("A");
            response.Text.Should().Be("A");
            response.UserDisplayName.Should().Be("A");
            response.UserId.Should().Be(1);
        }