public virtual ApiPipelineStepDestinationResponseModel MapBOToModel( BOPipelineStepDestination boPipelineStepDestination) { var model = new ApiPipelineStepDestinationResponseModel(); model.SetProperties(boPipelineStepDestination.Id, boPipelineStepDestination.DestinationId, boPipelineStepDestination.PipelineStepId); return(model); }
public void MapResponseToRequest() { var mapper = new ApiPipelineStepDestinationModelMapper(); var model = new ApiPipelineStepDestinationResponseModel(); model.SetProperties(1, 1, 1); ApiPipelineStepDestinationRequestModel response = mapper.MapResponseToRequest(model); response.DestinationId.Should().Be(1); response.PipelineStepId.Should().Be(1); }