CleanCart.Tests.Controllers.ShopCatalogControllerTest.IndexShouldRetrivedListItemsFromService C# (CSharp) Метод

IndexShouldRetrivedListItemsFromService() приватный Метод

private IndexShouldRetrivedListItemsFromService ( ) : void
Результат void
        public void IndexShouldRetrivedListItemsFromService()
        {
            var service = new Mock<IShopCatalogService>();
            var shopCatalogController = new ShopCatalogController(service.Object);

            shopCatalogController.Index();

            service.Verify(x => x.ListCatalogItems());
        }