Esempio n. 1
0
 private Guide InsertTestGuide(SQLiteConnection conn, int i)
 {
     GuideDAO guideDAO = new GuideDAO();
     string name = GetRandomName() + i;
     Guide g = new Guide() { GuideName = name };
     guideDAO.Create(g, conn);
     g.GuideId = guideDAO.Read("SELECT * FROM guides WHERE guide_id = (SELECT max(guide_id) FROM guides)", conn)[0].GuideId;
     return g;
 }
Esempio n. 2
0
 private Guide InsertTestGuide(SQLiteConnection conn)
 {
     GuideDAO guideDAO = new GuideDAO();
     Guide g = new Guide() { GuideName = "HuntTestGuide" };
     guideDAO.Create(g, conn);
     g.GuideId = guideDAO.Read("SELECT * FROM guides WHERE guide_name = 'HuntTestGuide'", conn)[0].GuideId;
     return g;
 }