public void TakeCareOfNextClaim() { Console.Clear(); Queue <KomodoClaimsContent> listofContent = _kcRepo.LookAtNextClaim(); KomodoClaimsContent nextInLine = listofContent.Peek(); DisplayContent(nextInLine); Console.WriteLine("Would you like to deal with this claim now? (yes or no)"); string userInput = Console.ReadLine().ToLower(); if (userInput == "yes") { Queue <KomodoClaimsContent> blistofContent = _kcRepo.ProcessNextClaim(); blistofContent.Dequeue(); Console.WriteLine("Okay, let's get started"); } else if (userInput == "no") { Console.WriteLine("Okay, let's return to the main menu"); } else { Console.WriteLine("Please enter a valid response"); } Console.WriteLine("Please press any key to continue"); Console.ReadKey(); }
public void LookAtNextClaim_ShouldReturnCorrectItem() { KomodoClaimsContent testItem = new KomodoClaimsContent(); KomodoClaimsRepo repo = new KomodoClaimsRepo(); repo.AddClaimToDirectory(testItem); Queue <KomodoClaimsContent> testQueue = repo.LookAtNextClaim(); bool directoryHasItem = testQueue.Contains(testItem); Assert.IsTrue(directoryHasItem); }