public virtual ApiOtherTransportServerRequestModel MapServerResponseToRequest( ApiOtherTransportServerResponseModel response) { var request = new ApiOtherTransportServerRequestModel(); request.SetProperties( response.HandlerId, response.PipelineStepId); return(request); }
public void MapModelToEntity() { var mapper = new DALOtherTransportMapper(); ApiOtherTransportServerRequestModel model = new ApiOtherTransportServerRequestModel(); model.SetProperties(1, 1); OtherTransport response = mapper.MapModelToEntity(1, model); response.HandlerId.Should().Be(1); response.PipelineStepId.Should().Be(1); }