internal static UberTime BuildUberTimeResult(UberTimeResultModel uberTime) { if (uberTime == null) return null; return ModelFactory.Create(uberTime); }
internal static UberTime Create(UberTimeResultModel uberTimeResultModel) { if (uberTimeResultModel == null) { throw new ArgumentNullException("uberTimeResultModel"); } return new UberTime(uberTimeResultModel.product_id, uberTimeResultModel.estimate); }