public void AddPileShouldReturnTrueIfPileIsAddedTest()
        {
            //Arrange
            EmptyGameRoom.StartGame();
            int oldPileAmount = EmptyGameRoom.GetPiles().Count();

            //Act
            Pile newPile  = new Pile(Visibility.VisibleToAll, PileType.Run, Accessability.AccessableToAll, 50, 50, PlayerOne, null, EmptyGameRoom.MaxPileNo++);
            bool succeded = EmptyGameRoom.AddPile(newPile);

            //Assert
            Assert.AreEqual(oldPileAmount + 1, EmptyGameRoom.GetPiles().Count());
            Assert.IsTrue(succeded);
        }
        public Status AddNewPile(string gamePin, Pile pile)
        {
            Status   result         = Status.None;
            GameRoom targetGameRoom = GetGameRoomWithPin(gamePin);

            if (targetGameRoom.AddPile(pile))
            {
                result = Status.Success;
            }
            else
            {
                result = Status.AddPileError;
            }
            return(result);
        }