public virtual ApiPipelineStepStatusServerRequestModel MapServerResponseToRequest( ApiPipelineStepStatusServerResponseModel response) { var request = new ApiPipelineStepStatusServerRequestModel(); request.SetProperties( response.Name); return(request); }
public void MapModelToEntity() { var mapper = new DALPipelineStepStatusMapper(); ApiPipelineStepStatusServerRequestModel model = new ApiPipelineStepStatusServerRequestModel(); model.SetProperties("A"); PipelineStepStatus response = mapper.MapModelToEntity(1, model); response.Name.Should().Be("A"); }