Exemplo n.º 1
0
        public void SetUp()
        {
            parentDefinition = new ItemDefinition(typeof(DefinitionControllingParent)) { TemplateKey = "List" };
            childDefinition = new ItemDefinition(typeof(DefinitionOppressedChild)) { TemplateKey = "Wide" };

            definitions = MockRepository.GenerateStub<IDefinitionManager>();
            definitions.Expect(d => d.GetDefinitions()).Return(new[] { parentDefinition, childDefinition }).Repeat.Any();
        }
        public void SetUp()
        {
            parentDefinition = new ItemDefinition(typeof(DefinitionControllingParent))
            {
                TemplateKey = "List"
            };
            childDefinition = new ItemDefinition(typeof(DefinitionOppressedChild))
            {
                TemplateKey = "Wide"
            };

            definitions = MockRepository.GenerateStub <IDefinitionManager>();
            definitions.Expect(d => d.GetDefinitions()).Return(new[] { parentDefinition, childDefinition }).Repeat.Any();
        }
Exemplo n.º 3
0
        public void SetUp()
        {
            PathDictionary.AllSingletons.Clear();

            typeFinder = new FakeTypeFinder2();
            typeFinder.typeMap[typeof(IController)] = new[]
            {
                typeof(ExecutiveTeamController),
                typeof(AboutUsSectionPageController),
                typeof(RegularController),
                typeof(NonN2Controller),
                typeof(SearchController),
                typeof(TestItemController),
            };

            definitions = MockRepository.GenerateMock <IDefinitionManager>();

            definitions.Expect(d => d.GetDefinitions()).Return(
                new List <ItemDefinition>
            {
                new ItemDefinition(typeof(RegularPage)),
            }
                );
        }
Exemplo n.º 4
0
        public void SetUp()
        {
            PathDictionary.AllSingletons.Clear();

            typeFinder = new FakeTypeFinder2();
            typeFinder.typeMap[typeof(IController)] = new[]
            {
                typeof (ExecutiveTeamController),
                typeof (AboutUsSectionPageController),
                typeof (RegularController),
                typeof (NonN2Controller),
                typeof (SearchController),
                typeof (TestItemController),
            };

            definitions = MockRepository.GenerateMock<IDefinitionManager>();

            definitions.Expect(d => d.GetDefinitions()).Return(
                new List<ItemDefinition>
                    {
                        new ItemDefinition(typeof (RegularPage)),
                    }
                );
        }