예제 #1
0
        internal static UberTime BuildUberTimeResult(UberTimeResultModel uberTime)
        {
            if (uberTime == null)
                return null;

            return ModelFactory.Create(uberTime);
        }
예제 #2
0
        internal static UberTime Create(UberTimeResultModel uberTimeResultModel)
        {
            if (uberTimeResultModel == null)
            {
                throw new ArgumentNullException("uberTimeResultModel");
            }

            return new UberTime(uberTimeResultModel.product_id, uberTimeResultModel.estimate);
        }