Beispiel #1
0
        public void EnquiingClaim_ShouldGetCorrectBoolean()
        {
            Claim          content = new Claim();
            Insurance_Repo repo    = new Insurance_Repo();

            bool addResult = repo.EnquingClaimToQueue(_claim);

            Assert.IsTrue(addResult);
        }
Beispiel #2
0
        public void GetQueue_ShouldReturnAllQueuedItems()
        {
            Claim          content = new Claim();
            Insurance_Repo repo    = new Insurance_Repo();

            repo.EnquingClaimToQueue(content);

            Queue <Claim> contents = repo.GetAllClaims();

            bool queueHasContent = contents.Contains(content);

            Assert.IsTrue(queueHasContent);
        }
Beispiel #3
0
 public void Arrange()
 {
     _repo  = new Insurance_Repo();
     _claim = new Claim(1343, ClaimType.Renters, "Apartment above flooded which created water damage for lower resident.", 25000.00, new DateTime(2020, 01, 23), new DateTime(2020, 01, 31));
     _repo.EnquingClaimToQueue(_claim);
 }