示例#1
0
        private void SeeAllClaims()
        {
            Queue <KomodoClaims> list = _claimRepo.GetAllQueue();

            foreach (KomodoClaims content in list)
            {
                Console.WriteLine($"ClaimID     Claim Type      Description                Claim Ammount       Date Of Incident        Date of Claim       Is Valid\n{content.ClaimID}     {content.ClaimType}     {content.Description}                {content.ClaimAmount}       {content.DateOfIncident}        {content.DateOfClaim}       {content.IsValid}");
            }
            Console.ReadLine();
        }
示例#2
0
        public void AddAndGetAllQueueTest()
        {
            KomodoClaimsRepository queueRepo = new KomodoClaimsRepository();
            KomodoClaims           content   = new KomodoClaims(1, ClaimType.Home, "Bad stuff happened", 400.34m, new DateTime(1989, 05, 19), new DateTime(1989, 5, 23), true);

            queueRepo.AddToQueue(content);
            Queue <KomodoClaims> list = queueRepo.GetAllQueue();

            var expected = 1;
            var actual   = list.Count;

            Assert.AreEqual(expected, actual);
        }