public virtual ApiPipelineServerRequestModel MapServerResponseToRequest( ApiPipelineServerResponseModel response) { var request = new ApiPipelineServerRequestModel(); request.SetProperties( response.PipelineStatusId, response.SaleId); return(request); }
public void MapModelToEntity() { var mapper = new DALPipelineMapper(); ApiPipelineServerRequestModel model = new ApiPipelineServerRequestModel(); model.SetProperties(1, 1); Pipeline response = mapper.MapModelToEntity(1, model); response.PipelineStatusId.Should().Be(1); response.SaleId.Should().Be(1); }