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(); }
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); }
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); }
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); }