Exemple #1
0
        private void TakeCareOfNextClaim()
        {
            Console.Clear();
            Claims nextInQueue = _komodoClaimsRePo.SeeNextInQueue();

            ViewClaimData(nextInQueue);

            Console.WriteLine("Do you want to handle this claim? y/n");
            string userinput = Console.ReadLine();

            if (userinput == "y" || userinput == "Y")
            {
                bool isSuccessful = _komodoClaimsRePo.RemoveClaimFromQueue();
                if (isSuccessful)
                {
                    Console.WriteLine("Claim Removed");
                }
                else
                {
                    Console.WriteLine("Claim was not Removed");
                }
            }
            if (userinput == "N" || userinput == "n")
            {
                Menu();
            }
        }
        public void TestMethod_RemoveClaimsFromQueue()
        {
            //Arrange -> Set things up.
            int expected = 0;

            //Act - Do some work
            _kCRepo.RemoveClaimFromQueue();

            //Assert check to see if the work is working
            Assert.AreEqual(expected, _listOfClaims.Count);
        }