public void AddToList_Test()
        {
            //ARRANGE
            Claim      newOne = new Claim();
            Claim_Repo repo   = new Claim_Repo();
            //ACT
            bool addClaim = repo.AddClaim(newOne);

            //ASSERT
            Assert.IsTrue(addClaim);
        }
        public void AddClaim_ShouldGetCorrectBool() //Create
        {
            //Arrange
            Claim      claim = new Claim();
            Claim_Repo repo  = new Claim_Repo();

            //Act
            bool addClaim = repo.AddClaim(claim);

            //Assert
            Assert.IsTrue(addClaim);
        }
Esempio n. 3
0
        public void GetQueueTest()
        {
            _testClaimsRepo = new Claim_Repo();

            _testClaimsRepo.CreateNew(testClaim);

            Queue <Claim> getTestQueues = _testClaimsRepo.GetQueue();

            foreach (Claim Claim in getTestQueues)
            {
                Assert.IsNotNull(Claim);
            }
        }
Esempio n. 4
0
        public void TestMethod1()
        {
            _testClaimsRepo = new Claim_Repo();

            _testClaimsRepo.CreateNew(testClaim);

            Queue <Claim> queContent = _testClaimsRepo.();

            foreach (Claim Claim in queContent)
            {
                Assert.IsNotNull(Claim);
            }
        }
        public void GetListOfCLaims_Test()
        {
            //Arrange
            Claim      newOne = new Claim();
            Claim_Repo repo   = new Claim_Repo();

            repo.AddClaim(newOne);
            //ACT
            Queue <Claim> newList  = repo.GetListOfClaims();
            bool          hasClaim = newList.Contains(newOne);

            //ASSERT
            Assert.IsTrue(hasClaim);
        }
        public void DequeueClaim_ShouldReturnTrue()
        {
            //Arrange
            Claim      claim = new Claim();
            Claim_Repo repo  = new Claim_Repo();

            repo.AddClaim(claim);

            //Act
            bool dequeuedClaim = repo.DequeueClaim();

            //Assert
            Assert.IsTrue(dequeuedClaim);
        }
        public void PeekClaim_ShouldReturnNextClaim() //Read
        {
            //Arrange
            Claim      claim = new Claim();
            Claim_Repo repo  = new Claim_Repo();

            repo.AddClaim(claim);

            //Act
            Claim nextClaim = repo.PeekClaim();

            //Assert
            Assert.AreEqual(nextClaim, claim);
        }
        public void GetClaims_ShouldReturnCorrectCollection() //Read
        {
            //Arrange
            Claim      claim = new Claim();
            Claim_Repo repo  = new Claim_Repo();

            repo.AddClaim(claim);

            //Act
            Queue <Claim> claims   = repo.GetAllClaims();
            bool          hasClaim = claims.Contains(claim);

            //Assert
            Assert.IsTrue(hasClaim);
        }
Esempio n. 9
0
        public void CopyContentQueTest()
        {
            _testClaimsRepo = new Claim_Repo();

            Queue <Claim> testQueue = new Queue <Claim>();

            testQueue.Enqueue(testClaim);

            _testClaimsRepo.GetQueue(testQueue);

            Queue <Claim> getTestQueues = _testClaimsRepo.GetQueue();

            foreach (Claim Claim in getTestQueues)
            {
                Assert.IsNotNull(Claim);
            }
        }
Esempio n. 10
0
 public void TestMethod1()
 {
     Claim_Repo repo = new Claim_Repo();
 }