public void ShowCustomer_isWaiting_ReturnTrue() { //Arrange MckinneyDiner inQue = new MckinneyDiner(); InWaiting newCustomer = new InWaiting(); newCustomer.IsAdded = true; newCustomer.IsDishClean = false; newCustomer.CustomerName = "Tracy"; inQue.CurrentlyWaiting = newCustomer; //Act InWaiting newPerson = new InWaiting(); newPerson.IsAdded = true; newPerson.IsDishDirty = true; newPerson.CustomerName = "Amos"; inQue.CurrentlyWaiting = newPerson; bool showCustomer = inQue.showCustomer(newPerson); //Assert Assert.IsTrue(showCustomer); }
public bool showCustomer(InWaiting inWaiting) { Console.Write("This is the amount of customers that need to be seated: " + waitingQueue.Count); if (inWaiting.IsAdded) { return(true); } if (inWaiting.IsAdded != CurrentlyWaiting.IsAdded) { return(true); } return(false); }