示例#1
0
        public void CaseListIsNotEmpty()
        {
            ICaseRepository caseRepository = new CaseRepository();

            caseRepository.AddCase(new Case());
            caseRepository.AddCase(new Case());

            List <Case> listOfCases = caseRepository.GetListOfCases();

            Assert.IsTrue(listOfCases.Count > 0);
        }
示例#2
0
        public void CheckIfListHasCorrectNumberOfCases()
        {
            ICaseRepository caseRepository = new CaseRepository();

            caseRepository.AddCase(new Case());
            caseRepository.AddCase(new Case());
            caseRepository.AddCase(new Case());

            List <Case> listOfCases = caseRepository.GetListOfCases();

            Assert.AreEqual(3, listOfCases.Count);
        }