protected override void Act() { var parameterValueProperty = base.ParameterElement.Property("Value"); parameterValueProperty.Value = typeof(DependencyElement); var valueElementProperty = (ValueElementProperty)ParameterElement.Property("Value"); dependencyParameterViewModel = valueElementProperty.ValueElementViewModel; }
protected override void Act() { var parameterValueProperty = base.ParameterElement.Property("Value"); parameterValueProperty.Value = typeof(OptionalElement); var valueElementProperty = (ValueElementProperty)ParameterElement.Property("Value"); optionalParameterViewModel = valueElementProperty.ValueElementViewModel; }