예제 #1
0
        public void NextClaim_ShouldReturnCorrectClaim()
        {
            KClaim    claim1 = new KClaim();
            KClaim    claim2 = new KClaim();
            kmenuRepo repo   = new kmenuRepo();

            repo.AddClaimToDirectory(claim1);
            repo.AddClaimToDirectory(claim2);

            KClaim testQue = repo.NextClaim();

            Assert.AreEqual(claim1, testQue);
        }
        public void moveClaim()
        {
            Console.WriteLine("Here are the details for the next claim to be handled: ");
            DisplayMenu(_kmenuRepo.NextClaim());
            Console.WriteLine("Do you want to deal with this claim now (y/n)?");
            string answer = Console.ReadLine();

            if (answer == "y")
            {
                _kmenuRepo.RemoveTopClaim();
            }
            else
            {
                return;
            }
        }