public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; usDB = new UsersNotificationPreferencesDB(testing); li = new LinkedList <Tuple <int, String, int> >();//category(enum),username,storeId usDB.Add(Tuple.Create(1, "itamar", 1)); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; discountDB = new DiscountDB(testing); li = new LinkedList <Discount>(); discountDB.Add(new Discount(1, 1, "", 10, "02/02/2020", "")); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; couponDB = new couponDB(testing); li = new LinkedList <Coupon>(); couponDB.Add(new Coupon("hey", 1, 50, "02/02/2020")); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; SPDB = new StorePremissionsDB(testing); li = new LinkedList <Tuple <int, String, String> >(); // storeId, username, permission SPDB.Add(Tuple.Create(1, "itamar", "AddSales")); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; saleDB = new SaleDB(testing); li = new LinkedList <Sale>(); saleDB.Add(new Sale(1, 1, 1, 10, "20/02/2020")); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; buyHistoryDB = new BuyHistoryDB(testing); buyHistoryDB.Add(new Purchase(1, 1, 1, "itamar", 0.5, "02/02/2020", 5, 1)); li = new LinkedList <Purchase>(); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; raffDB = new RaffleSaleDB(testing); li = new LinkedList <RaffleSale>(); raffDB.Add(new RaffleSale(1, "itamar", 500, "02/02/2020")); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; strldDB = new StoreRoleDictionaryDB(testing); li = new LinkedList <Tuple <int, String, String, String, String> >();//storeId,username,storeRole,addedy,timeadded strldDB.Add(Tuple.Create(1, "itamar", "Owner", "yossi", "03/03/2030")); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; userDB = new UserDB(testing); userDB.Add(new User("aviad", "123")); li = new LinkedList <User>(); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; pendingMessagesDB = new PendingMessagesDB(testing); li = new LinkedList <Tuple <String, String> >(); pendingMessagesDB.Add(Tuple.Create("itamar", "hey")); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; storeDB = new StoreDB(testing); li = new LinkedList <Store>(); itamar = new User("itamar", "123"); storeDB.Add(new Store(1, "halavi", itamar)); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; userCartDB = new UserCartDB(testing); li = new LinkedList <UserCart>(); UserCart temp = new UserCart("itamar", 1, 10); temp.Offer = 200; userCartDB.Add(temp); }
public void init() { WebServices.DAL.CleanDB cDB = new WebServices.DAL.CleanDB(); cDB.emptyDB(); configuration.DB_MODE = testing; pisDB = new ProductInStoreDB(testing); li = new LinkedList <ProductInStore>(); itamar = new User("itamar", "123"); apple = new Store(1, "apple", itamar); milk = new Product("milk"); meat = new Product("meat"); ProductInStore meatInStore = new ProductInStore(1, meat, 30, 30, apple); pisDB.Add(meatInStore); }
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); }