예제 #1
0
        public virtual ApiVPersonClientRequestModel MapServerResponseToClientRequest(
            ApiVPersonServerResponseModel response)
        {
            var request = new ApiVPersonClientRequestModel();

            request.SetProperties(
                response.PersonName);
            return(request);
        }
        public void MapClientRequestToResponse()
        {
            var mapper = new ApiVPersonModelMapper();
            var model  = new ApiVPersonClientRequestModel();

            model.SetProperties("A");
            ApiVPersonClientResponseModel response = mapper.MapClientRequestToResponse(1, model);

            response.Should().NotBeNull();
            response.PersonName.Should().Be("A");
        }