Exemplo n.º 1
0
 public void getUserByIdDB()
 {
     for (int i = 0; i < 4; i++)
     {
         db.RegisterUser("test" + i, "" + i, "email" + i, null);
     }
     Assert.AreEqual(db.getUserById(db.Login("test0", "0")).id, db.getUserByEmail("email0").id);
     Assert.AreNotEqual(db.getUserById(db.Login("test1", "1")).id, db.getUserByEmail("email2").id);
 }
        public void filterActiveGamesByPotSizeTest()
        {
            var user2 = db.getUserById(db.getUserByName("test0").id);

            sl.GetGameForPlayers(user2.id, 3);

            sl.GetGameForPlayers(user2.id, 0);

            Assert.AreEqual(center.filterActiveGamesByPotSize(0).Count, 8);
        }