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);
        }
Example #2
0
 /// <summary>
 /// Moves the element upwards in the collection.
 /// </summary>
 /// <param name="parameter">
 /// Not used
 /// </param>
 protected override void InnerExecute(object parameter)
 {
     collection.MoveUp(element);
     element.Select();
 }