public virtual ApiUnitDispositionServerRequestModel MapServerResponseToRequest( ApiUnitDispositionServerResponseModel response) { var request = new ApiUnitDispositionServerRequestModel(); request.SetProperties( response.Name); return(request); }
public void MapModelToEntity() { var mapper = new DALUnitDispositionMapper(); ApiUnitDispositionServerRequestModel model = new ApiUnitDispositionServerRequestModel(); model.SetProperties("A"); UnitDisposition response = mapper.MapModelToEntity(1, model); response.Name.Should().Be("A"); }