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); }
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); }