public void GetByIdTest()
        {
            //Arrange
            GameTableServiceAccess gameTableServiceAccess = new GameTableServiceAccess();
            GameTableModel         gameTable = null, gameTable2 = null;
            List <GameTableModel>  tables = gameTableServiceAccess.GetAll();

            if (tables.Count > 0)
            {
                gameTable = tables[0];
            }
            //Act
            gameTable2 = gameTableServiceAccess.GetById(gameTable.Id);

            //Assert
            Assert.AreEqual(gameTable.TableName, gameTable2.TableName);
        }
Beispiel #2
0
 public GameTableModel GetById(int tableId)
 {
     return(gameTableAccess.GetById(tableId));
 }