protected override void Arrange() { base.Arrange(); Viewmodel = SectionViewModel.CreateSection(Container, ExceptionHandlingSettings.SectionName, Section); Handler = (CollectionElementViewModel) Viewmodel.DescendentElements(x => typeof(ExceptionHandlerData).IsAssignableFrom(x.ConfigurationType)).First(); }
protected override void Act() { firstHandler = ViewModel.DescendentElements(x => x.ConfigurationType == typeof(TestHandlerData)).OfType<CollectionElementViewModel>().Where( x => x.Name == "One").Single(); firstHandler.Select(); secondHandler = ViewModel.DescendentElements(x => x.ConfigurationType == typeof(TestHandlerData)).OfType<CollectionElementViewModel>().Where( x => x.Name == "Two").Single(); secondHandler.MoveDown.Execute(null); }