public void GetAll_WhenNoItemsAdded_ShouldReturnTwoItems() { var items = _itemsRepository.GetAll(); Assert.NotNull(items); Assert.AreEqual(items.Count(), 2); }
public IEnumerable <TodoItems> GetAll() { return(_todoItemsRepository.GetAll()); }
public ActionResult <IEnumerable <TodoItemModel> > Get() { return(Ok(_repo.GetAll())); }