Exemplo n.º 1
0
        private void SeedQueue()
        {
            Claim claim1 = new Claim(1, ClaimType.Car, "Car Accident on 465", 378.00m, DateTime.Parse("04/25/2018"), DateTime.Parse("04/27/2018"), true);
            Claim claim2 = new Claim(2, ClaimType.Home, "House Fire in Kitchen", 23344.12m, DateTime.Parse("04/11/2018"), DateTime.Parse("04/12/2018"), true);
            Claim claim3 = new Claim(3, ClaimType.Theft, "Stolen Pancakes", 4.00m, DateTime.Parse("04/27/2018"), DateTime.Parse("06/01/2018"), false);

            _claimRepo.CreateClaim(claim1);
            _claimRepo.CreateClaim(claim2);
            _claims.Enqueue(claim1);
            _claims.Enqueue(claim2);
            _claims.Enqueue(claim3);
        }
        public void Test_CreateClaim()
        {
            var claimrepo    = new ClaimRepo();
            var initialcount = _claims.Count;
            var testclaim    = new Claim();

            claimrepo.CreateClaim(testclaim);
            int newcount = _claims.Count;

            Assert.AreNotEqual(initialcount, newcount);
        }