Example #1
0
        public void get_shopping_list_should_call_repository()
        {
            _repositoryMock.Setup(x => x.GetItems()).Returns(new List <ShoppingListItem>());

            var result = _controller.GetItems();

            _repositoryMock.Verify(x => x.GetItems());
        }