public void GetAll_WhenCalled_ReturnsListOfItems() { // Act var result = itemRepository.GetAll(); // Assert Assert.Collection(result, item => item.DisplayName.Contains("Tv"), item => item.DisplayName.Contains("Jacket"), Item => Item.DisplayName.Contains("Knife")); }
public IEnumerable <ItemViewModel> GetAll() { List <ItemViewModel> items = itemRepository.GetAll(); return(items); }