Beispiel #1
0
        public void TestQuerySeatsStates()
        {
            SeatStateManager target = new SeatStateManager();
            DataTable        actual;

            actual = target.QuerySeatsStates();
            Assert.IsNotNull(actual);
        }
Beispiel #2
0
        public void TestClearOccupiedSeat()
        {
            SeatStateManager target = new SeatStateManager();
            int  row      = 1;
            int  column   = 1;
            bool expected = true;
            bool actual;

            target.UpdateSeatsStates(row, column, "Occupied");
            actual = target.ClearOccupiedSeat(row, column);
            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public Boolean UpdateSeatState(int row, int column)
        {
            stateManager = new SeatStateManager();
            int stateInt = GetSeatState(row, column);

            if (stateInt == -1)
            {
                return(false);
            }
            String stateString = StateTransferFromIntToString(stateInt);

            return(stateManager.UpdateSeatsStates(row, column, stateString));
        }