Beispiel #1
0
        private void TakeCareOfClaim()
        {
            ClaimsContent upNext = _claimsRepo.NextClaim();

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

            if (userinput.ToLower() == "y")
            {
                _claimsRepo.ClaimDequeue();
            }
            if (userinput.ToLower() == "n")
            {
            }
        }
        public void NextClaim_ShouldBeCorrect()
        {
            _repo = new ClaimsContentRepo();
            Queue <ClaimsContent> _queueofclaims = new Queue <ClaimsContent>();

            _content          = new ClaimsContent();
            _content.ClaimsID = 1;
            _repo.AddClaimToQueue(_content);

            int           test   = 1;
            ClaimsContent claim  = _repo.NextClaim();
            int           actual = claim.ClaimsID;

            Assert.AreEqual(actual, test);
        }