示例#1
0
        public WeProduct(string productId, WeProductBase productBase, DeliveryInfo deliveryInfo,
            ProductStatus status, params SkuListElement[] skuList)
            : this(productId, productBase, deliveryInfo, status)
        {
            TkDebug.AssertArgumentNull(skuList, "skuList", null);

            SkuList.AddRange(skuList);
        }
示例#2
0
        public WeProduct(string productId, WeProductBase productBase, SkuListElement sku,
            DeliveryInfo deliveryInfo, ProductStatus status)
            : this(productId, productBase, deliveryInfo, status)
        {
            TkDebug.AssertArgumentNull(sku, "sku", null);

            SkuList.Add(sku);
        }
示例#3
0
        public WeProduct(string productId, WeProductBase productBase, DeliveryInfo deliveryInfo,
                         ProductStatus status, params SkuListElement[] skuList)
            : this(productId, productBase, deliveryInfo, status)
        {
            TkDebug.AssertArgumentNull(skuList, "skuList", null);

            SkuList.AddRange(skuList);
        }
示例#4
0
        public WeProduct(string productId, WeProductBase productBase, SkuListElement sku,
                         DeliveryInfo deliveryInfo, ProductStatus status)
            : this(productId, productBase, deliveryInfo, status)
        {
            TkDebug.AssertArgumentNull(sku, "sku", null);

            SkuList.Add(sku);
        }
示例#5
0
        private WeProduct(string productId, WeProductBase productBase, DeliveryInfo deliveryInfo,
            ProductStatus status)
        {
            TkDebug.AssertArgumentNullOrEmpty(productId, "productId", null);
            TkDebug.AssertArgumentNull(ProductBase, "ProductBase", null);
            TkDebug.AssertArgumentNull(deliveryInfo, "deliveryInfo", null);

            ProductId = productId;
            SkuList = new List<SkuListElement>();
            ProductBase = productBase;
            DeliveryInfo = deliveryInfo;
            Status = status;
        }
示例#6
0
        private WeProduct(string productId, WeProductBase productBase, DeliveryInfo deliveryInfo,
                          ProductStatus status)
        {
            TkDebug.AssertArgumentNullOrEmpty(productId, "productId", null);
            TkDebug.AssertArgumentNull(ProductBase, "ProductBase", null);
            TkDebug.AssertArgumentNull(deliveryInfo, "deliveryInfo", null);

            ProductId    = productId;
            SkuList      = new List <SkuListElement>();
            ProductBase  = productBase;
            DeliveryInfo = deliveryInfo;
            Status       = status;
        }