public void GetAllIncludes_ShouldAskStorageForIncludes()
        {
            _mockStorage.Expect(s => s.GetAllIncludes()).Return(new[] { new Include(IncludeType.Css, "~/foo.css", "#foo{color:red;}", DateTime.UtcNow) });
            IEnumerable <Include> includes = _combiner.GetAllIncludes();

            Assert.IsNotNull(includes);
            _mocks.VerifyAll();
        }
예제 #2
0
        public ActionResult Index()
        {
            // TODO: list the contents of the IncludeStorage; Includes and IncludeCombinations
            var model = new IncludeIndexModel {
                Includes = _combiner.GetAllIncludes(), Combinations = _combiner.GetAllCombinations()
            };

            return(View(model));
        }