Exemplo n.º 1
0
        static void Main()
        {
            Restaurant myRestaurant = new Restaurant();

            myRestaurant.AddPeopleIntoTheQueue("First diner waiting to be seated");
            myRestaurant.AddPeopleIntoTheQueue("Second diner waiting to be seated");
            myRestaurant.AddPeopleIntoTheQueue("Third diner waiting to be seated");
            myRestaurant.AddPeopleIntoTheQueue("Fourth diner waiting to be seated");
            myRestaurant.AddPeopleIntoTheQueue("Fifth diner waiting to be seated");


            myRestaurant.DinerHasBeenSeated();


            myRestaurant.AddPeopleIntoTheQueue("First diner seated");
            myRestaurant.AddPeopleIntoTheQueue("Second seated");
            myRestaurant.AddPeopleIntoTheQueue("Third seated");
            myRestaurant.AddPeopleIntoTheQueue("Fourth seated");
            myRestaurant.AddPeopleIntoTheQueue("Fifth seated");


            myRestaurant.AddDishesInTheDirtyStack("First table's dirty dishes");
            myRestaurant.AddDishesInTheDirtyStack("Second table's dirty dishes");
            myRestaurant.AddDishesInTheDirtyStack("Third table's dirty dishes");
            myRestaurant.AddDishesInTheDirtyStack("Fourth table's dirty dishes");
            myRestaurant.AddDishesInTheDirtyStack("Fifth table's dirty dishes");


            myRestaurant.AddDishesInTheCleanStack("First table's clean dishes");
            myRestaurant.AddDishesInTheCleanStack("Second table's clean dishes");
            myRestaurant.AddDishesInTheCleanStack("Third table's clean dishes");
            myRestaurant.AddDishesInTheCleanStack("Fourth table's clean dishes");
            myRestaurant.AddDishesInTheCleanStack("Fifth table's clean dishes");


            myRestaurant.DinerHasEatenPaidAndLeft();

            myRestaurant.WaiterHasCleanedTheTable();

            myRestaurant.ShowMeHowManyDinersIHave();

            myRestaurant.ShowMeTheActualDiners();
        }
Exemplo n.º 2
0
        public void DinerHasEatenPaidAndLeft_IfDinerHasEatenPaidAndLeft_ReturnsString()
        {
            Restaurant restaurant   = new Restaurant();
            string     sendVariable = "Diner 1";

            restaurant.AddPeopleIntoTheQueue("Diner 1");
            string result = restaurant.DinerHasEatenPaidAndLeft(sendVariable);


            Assert.IsTrue(sendVariable == result);
        }
Exemplo n.º 3
0
        public void WaiterHasCleanedTheTable_IfTableIsCleaned_ReturnsString()
        {
            Restaurant restaurant   = new Restaurant();
            string     sendVariable = "Table 1";

            restaurant.AddPeopleIntoTheQueue("Table 1");
            string result = restaurant.WaiterHasCleanedTheTable(sendVariable);


            Assert.IsTrue(sendVariable == result);
        }
Exemplo n.º 4
0
        public void AddDishesInTheCleanStack_IfItsACleanDish_ReturnsString()
        {
            Restaurant restaurant   = new Restaurant();
            string     sendVariable = "Dish 1";

            restaurant.AddPeopleIntoTheQueue("Diner 1");
            string result = restaurant.AddDishesInTheCleanStack(sendVariable);


            Assert.IsTrue(sendVariable == result);
        }