public void NextClaim() { Console.Clear(); claims.ViewNextClaim(); Console.Write("Do you want to handle this claim now (y/n)?:"); string agentInput = Console.ReadLine(); if (agentInput == "y" || agentInput == "Y") { claims.Dequeue(); MainMenu(); } else if (agentInput == "n" || agentInput == "N") { MainMenu(); } else { Console.WriteLine("Did not recognize answer, enter 'y' or 'n' when prompted.\n" + "Press any key to continue..."); Console.ReadKey(); NextClaim(); } }
public void Dequeue_ShouldReturnTrue() { ClaimsRepo repo = new ClaimsRepo(); Claim claim = new Claim(); repo.Enqueue(claim); bool wasDequeued = repo.Dequeue(); Assert.IsTrue(wasDequeued); }