コード例 #1
0
        public void DequeueClaim_ShouldReturnTrue()
        {
            bool dequeueResult = _repo.RemoveClaimFromQueue(_claim);

            //Assert
            Assert.IsTrue(dequeueResult);
        }
コード例 #2
0
        // Take care of next claim
        private void ViewNextClaim()
        {
            //clear console
            Console.Clear();

            //Komodo Claims claim =

            //create variabe of type KomodoClaims

            KomodoClaims claim = _claimsRepo.GetNextClaimInQueue();

            Console.WriteLine($"Next claim in line is:\n");
            DisplayClaimInfo(claim);

            Console.WriteLine("*****************************************");

            Console.WriteLine("\nDo you wish to deal with this claim now?\n" +
                              "1. Yes\n" +
                              "2. No");
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                _claimsRepo.RemoveClaimFromQueue();
                break;

            case "2":
                Console.Clear();
                Menu();
                break;
            }


            //set it = to _claimsRepo.(methodToPeek)

            //call displayClaimInfo(variable of type komodoClaims)
        }