Exemplo n.º 1
0
 private Group InsertTestGroup(SQLiteConnection conn, int i)
 {
     GroupDAO groupDAO = new GroupDAO();
     string name = lastNames[rand.Next(0, lastNames.Length - 1)] + " Group" + i;
     Group g = new Group() { GroupName = name };
     groupDAO.Create(g, conn);
     g.GroupId = groupDAO.Read("SELECT * FROM groups WHERE group_id = (SELECT max(group_id) FROM groups)", conn)[0].GroupId;
     return g;
 }
Exemplo n.º 2
0
 private Group InsertTestGroup(SQLiteConnection conn)
 {
     GroupDAO groupDAO = new GroupDAO();
     Group g = new Group() { GroupName = "HuntTestGroup" };
     groupDAO.Create(g, conn);
     g.GroupId = groupDAO.Read("SELECT * FROM groups WHERE group_name = 'HuntTestGroup'", conn)[0].GroupId;
     return g;
 }