Пример #1
0
        // GET api/elementCategories
        public IEnumerable <ElementCategory> Get()
        {
            var summaryFeature = new CategoriesSummaryFeature();
            IEnumerable <ElementCategory> featureResult = summaryFeature.Execute();

            return(featureResult);
        }
Пример #2
0
        public void CategorySummaryFeatureShouldReturnListOfCategories()
        {
            var summaryFeature = new CategoriesSummaryFeature();
            var result         = summaryFeature.Execute();

            Assert.IsTrue(result.Any());
        }