public void DeleteTest()
        {
            //Arrange
            GameTableServiceAccess gameTableServiceAccess = new GameTableServiceAccess();
            CGUserModel            userModel = new CGUserModel {
                Id       = "Test",
                Email    = "*****@*****.**",
                UserName = "******"
            };
            GameTableModel tableModel = null;

            gameTableServiceAccess.CreateGameTable(userModel, "TestTable");
            List <GameTableModel> tables = gameTableServiceAccess.GetAll();

            foreach (var table in tables)
            {
                if (table.TableName == "TestTable")
                {
                    tableModel = table;
                }
            }
            bool res = false;

            //Act
            res = gameTableServiceAccess.Delete(tableModel.Id);


            //Assert
            Assert.IsTrue(res);
        }
Exemplo n.º 2
0
 public bool Delete(int tableId)
 {
     return(gameTableAccess.Delete(tableId));
 }