Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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;
        }
Example #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;
        }