public void GetAllCombinations_ShouldAskStorageForCombinations()
        {
            _mockStorage.Expect(s => s.GetAllCombinations()).Return(new Dictionary <string, IncludeCombination>());
            IDictionary <string, IncludeCombination> combinations = _combiner.GetAllCombinations();

            Assert.IsNotNull(combinations);
            _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));
        }