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));
 }
コード例 #2
0
 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", ""));
 }
コード例 #3
0
 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"));
 }
コード例 #4
0
 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"));
 }
コード例 #5
0
 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"));
 }
コード例 #6
0
 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>();
 }
コード例 #7
0
 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"));
 }
コード例 #8
0
 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"));
 }
コード例 #9
0
 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>();
 }
コード例 #10
0
 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"));
 }
コード例 #11
0
 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));
 }
コード例 #12
0
        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);
        }
コード例 #13
0
        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);
        }
コード例 #14
0
        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);
        }