Exemple #1
0
        public void ListRepository_GetAllItems()
        {
            var items        = _listRepository.FindAll();
            var initialCount = items.Count;
            var testEntity   = GetTestEntity();

            _listRepository.Create(testEntity);
            Assert.IsTrue(_listRepository.FindAll().Count == (initialCount + 1));
            Assert.IsTrue(_listRepository.Delete(testEntity));
            Assert.IsTrue(_listRepository.FindAll().Count == initialCount);
        }