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(); }
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)), } ); }
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)), } ); }