public virtual ApiHandlerPipelineStepServerRequestModel MapServerResponseToRequest(
            ApiHandlerPipelineStepServerResponseModel response)
        {
            var request = new ApiHandlerPipelineStepServerRequestModel();

            request.SetProperties(
                response.HandlerId,
                response.PipelineStepId);
            return(request);
        }
Пример #2
0
        public void MapModelToEntity()
        {
            var mapper = new DALHandlerPipelineStepMapper();
            ApiHandlerPipelineStepServerRequestModel model = new ApiHandlerPipelineStepServerRequestModel();

            model.SetProperties(1, 1);
            HandlerPipelineStep response = mapper.MapModelToEntity(1, model);

            response.HandlerId.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }