public void AddPurchasePolicy()
 {
     try
     {
         PurchasePolicy toAdd = new PurchasePolicy();
         toAdd.TypeOfPolicy     = 1;
         toAdd.ProductName      = "meat";
         toAdd.StoreId          = 1;
         toAdd.Category         = "";
         toAdd.ProductInStoreId = 2;
         toAdd.Country          = "ISRAEL";
         PPDB.Add(toAdd);
         li = PPDB.Get();
         Assert.AreEqual(li.Count, 2);
     }
     catch (Exception e)
     { Assert.AreEqual(true, false, "there was a connection error to the testing db"); }
 }
 private PurchasePolicyManager()
 {
     ppDB    = new PurchasePolicyDB(configuration.DB_MODE);
     policys = ppDB.Get();
 }