public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; PPDB = new PurchasePolicyDB(testing); li = new LinkedList <PurchasePolicy>(); PurchasePolicy temp = new PurchasePolicy(); temp.TypeOfPolicy = 1; temp.ProductName = "milk"; temp.StoreId = 1; temp.Category = ""; temp.ProductInStoreId = 1; temp.Country = ""; PPDB.Add(temp); }
private PurchasePolicyManager() { ppDB = new PurchasePolicyDB(configuration.DB_MODE); policys = ppDB.Get(); }