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"));
        }
Exemplo n.º 2
0
        public IEnumerable <ItemViewModel> GetAll()
        {
            List <ItemViewModel> items = itemRepository.GetAll();

            return(items);
        }