public void PushFranchiseIntoSQL(IList <GameInfo> games)
 {
     //Takes the results from IGDB query and inserts any missing franchises into SQL DB
     foreach (GameInfo x in games)
     {
         if (!franchiseSQLDAO.CheckFranchiseID(x.franchiseID))
         {
             Franchises newFranchise = new Franchises();
             newFranchise = franchisesIGDBDAO.PullSpecificFranchise(x.franchiseID);
             franchiseSQLDAO.PushFranchise(newFranchise.Franchise_Id, newFranchise.Franchise_Name);
         }
     }
 }
Пример #2
0
 public void CheckFranchiseIDTest()
 {
     Assert.AreEqual(true, dao.CheckFranchiseID(101));
     Assert.AreEqual(false, dao.CheckFranchiseID(123213123));
 }