private void ShowNextClaim() { ClaimInformation claim = _claimRepo.PeekAtClaimQueue(); Console.WriteLine($"Claim ID:{claim.ClaimID}\n + ClaimType:{claim.ClaimType}\n + Description:{claim.Description}\n + Amount of Damage: {claim.ClaimAmount}\n + Date Of Incident:{claim.DateOfIncident}\n + Date of Claim:{claim.DateOfClaim}\n + This claim is valid:{claim.IsValid}"); Console.WriteLine("Do you want to deal with this claim now? (y/n)"); string response = Console.ReadLine().ToLower(); if (response == "y") { _claimRepo.RemoveClaimFromQueue(); } else { } }
private void ViewClaims() { Claim claim1 = _claimRepo.PeekAtClaimQueue(); }