/// <summary> /// Initializes a new instance of the WizardCommand. /// </summary> /// <param name="attribute">The <see cref="WizardCommandAttribute"/> used to define this command.</param> /// <param name="uiService">The service to use when displaying dialogs.</param> /// <param name="resolver">The service to use to get instances of new <see cref="WizardModel"/> based on <paramref name="attribute"/></param> public WizardCommand(WizardCommandAttribute attribute , IUIServiceWpf uiService , IResolver <WizardModel> resolver) : base(attribute, uiService) { this.resolver = resolver; this.attributedClassType = attribute.WizardType; if (!typeof(WizardModel).IsAssignableFrom(attributedClassType)) { throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, Resources.InvalidWizardTypeMessage, attributedClassType.Name)); } }
///<summary> /// Initializes a new instance of <see cref="LogExceptionsToDatabaseCommand"/>. ///</summary> ///<param name="attribute">The <see cref="CommandAttribute"/> used to define this command.</param> ///<param name="uiService">The user-interface service for displaying messages or dialogs.</param> ///<param name="resolver">The resolver to use to create <see cref="WizardModel"/> instances.</param> public LogExceptionsToDatabaseCommand(WizardCommandAttribute attribute, IUIServiceWpf uiService, IResolver <WizardModel> resolver) : base(attribute, uiService, resolver) { }
public MockCommandModel(WizardCommandAttribute attribute, IUIServiceWpf uiService, IResolver <WizardModel> resolver) : base(attribute, uiService, resolver) { }