private System() { productId = DbCommerce.GetInstance().GetProductId(); multiCartId = DbCommerce.GetInstance().GetMultiCartId(); multiCarts = DbCommerce.GetInstance().GetMultiCarts(); stores = DbCommerce.GetInstance().GetStores(); moneyCollectionSystem = new MoneyCollectionSystemProxy(null); deliverySystem = new DeliverySystemProxy(null); //foreach (UserManagment.UserInfo info in DbCommerce.GetInstance().GetUserInfos()) // if (info.GetMultiCart() > multiCartId) // multiCartId = info.GetMultiCart(); //foreach (Store store in DbCommerce.GetInstance().GetStores()) // foreach (ProductAmountInventory productAmount in store.GetInventory()) // if (productAmount.productId > productId) // productId = productAmount.productId; }
public void ConnectMoneyCollectionSystem(MoneyCollectionSystemReal real) { moneyCollectionSystem = new MoneyCollectionSystemProxy(real); }