Example #1
0
        public void addClaimToQue_ShouldReturnTrue()
        {
            KClaim    claim = new KClaim();
            kmenuRepo repo  = new kmenuRepo();

            bool addedResult = repo.AddClaimToDirectory(claim);

            Assert.IsTrue(addedResult);
        }
Example #2
0
        public void getClaim_ShouldReturnTrue()
        {
            KClaim    claim = new KClaim();
            kmenuRepo repo  = new kmenuRepo();

            repo.AddClaimToDirectory(claim);

            Queue <KClaim> testQue  = repo.GetClaim();
            bool           addClaim = testQue.Contains(claim);

            Assert.IsTrue(addClaim);
        }
Example #3
0
        public void NextClaim_ShouldReturnCorrectClaim()
        {
            KClaim    claim1 = new KClaim();
            KClaim    claim2 = new KClaim();
            kmenuRepo repo   = new kmenuRepo();

            repo.AddClaimToDirectory(claim1);
            repo.AddClaimToDirectory(claim2);

            KClaim testQue = repo.NextClaim();

            Assert.AreEqual(claim1, testQue);
        }