protected override void Act() { elementContainer = new ElementModelContainer { DataContext = policy }; }
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 }; }