public void AddBuyHistory()
 {
     try
     {
         Purchase toAdd = new Purchase(2, 2, 2, "aviad", 50, "05/05/2050", 6, 2);
         buyHistoryDB.Add(toAdd);
         li = buyHistoryDB.Get();
         Assert.AreEqual(li.Count, 2);
     }
     catch (Exception e)
     { Assert.AreEqual(true, false, "there was a connection error to the testing db"); }
 }
Example #2
0
 private BuyHistoryManager()
 {
     BHDB        = new BuyHistoryDB(configuration.DB_MODE);
     buysHistory = BHDB.Get();
     buyId       = 0;
 }