protected override void Arrange() { base.Arrange(); ApplicationModel = Container.Resolve<IApplicationModel>(); var configurationSection = new MockSectionWithSingleChild { Children = { {new TestHandlerDataWithChildren{Name = "Element"} } } }; SectionViewModel sectionViewmodel = SectionViewModel.CreateSection(Container, "MockSection", configurationSection); Element = sectionViewmodel.GetDescendentsOfType<TestHandlerDataWithChildren>().First(); ApplicationModel.OnSelectedElementChanged(null); ElementContainer = new ElementModelContainer { DataContext = Element }; }
protected override void Arrange() { base.Arrange(); ApplicationModel = Container.Resolve <IApplicationModel>(); var configurationSection = new MockSectionWithSingleChild { Children = { { new TestHandlerDataWithChildren { Name = "Element" } } } }; SectionViewModel sectionViewmodel = SectionViewModel.CreateSection(Container, "MockSection", configurationSection); Element = sectionViewmodel.GetDescendentsOfType <TestHandlerDataWithChildren>().First(); ApplicationModel.OnSelectedElementChanged(null); ElementContainer = new ElementModelContainer { DataContext = Element }; }