public void DequeueClaimCountShouldDecrease() { int initialCount = _repo.ShowAllClaims().Count; _repo.DequeueClaim(); int newCount = _repo.ShowAllClaims().Count; Assert.AreNotEqual(initialCount, newCount); }
//Process next Claim private void AddressNextClaim() { Console.Clear(); ClaimsClass show = _claimsRepo.Peek(); // _claimsRepo.Peek(); Console.WriteLine($"\n\n\n ClaimID: {show.ClaimID}\n\n Type: {show.ClmType}\n\n Desc: {show.Description}\n\n Amount of Claim: ${show.ClaimAmt}\n\n Date of Incident: {show.DateOfIncident}\n\n Date of Claim: {show.DateOfClaim} "); Console.ForegroundColor = ConsoleColor.DarkRed; Console.WriteLine("\n\nWould you like to process this claim?"); Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine("\n 1. Y \n 2. N"); string processChoice = Console.ReadLine(); switch (processChoice) { case "1": case "Y": case "y": case "yes": case "Yes": Console.Clear(); _claimsRepo.DequeueClaim(); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("\n Claim Processed\n\n"); Console.ForegroundColor = ConsoleColor.Gray; break; case "2": case "N": case "n": case "no": case "No": break; default: Console.ForegroundColor = ConsoleColor.DarkYellow; Console.WriteLine("\n\n Please enter a valid option."); Console.ForegroundColor = ConsoleColor.Gray; Console.ReadLine(); break; } }