public void Setup() { _translationUpdater = new TranslationUpdater(new TranslationFactory(), new ThreadManager()); _plusHintHelper = Substitute.For <IPlusHintHelper>(); _commandLocator = Substitute.For <ICommandLocator>(); InitViewModel(); }
public PlusHintViewModel(ITranslationUpdater translationUpdater, ICommandLocator commandLocator, IPlusHintHelper plusHintHelper) : base(translationUpdater) { _plusHintHelper = plusHintHelper; FinishStepCommand = new DelegateCommand(o => CancelExecute()); PlusButtonCommand = new CompositeCommand(); //compose "open plus hint url" and "call step finsihed" var urlOpenCommand = commandLocator.GetInitializedCommand <UrlOpenCommand, string>(Urls.PlusHintLink); if (urlOpenCommand != null) //required to avoid NullException in DesignTimeViewModel { PlusButtonCommand.RegisterCommand(urlOpenCommand); } PlusButtonCommand.RegisterCommand(new DelegateCommand(o => InvokeStepFinished())); }
public ShowWelcomeWindowCommand(IWelcomeSettingsHelper welcomeSettingsHelper, IPlusHintHelper plusHintHelper, IInteractionInvoker interactionInvoker) { _welcomeSettingsHelper = welcomeSettingsHelper; _plusHintHelper = plusHintHelper; _interactionInvoker = interactionInvoker; }
public JobFinishedHandler(IInteractionInvoker interactionInvoker, IPlusHintHelper plusHintHelper) { _interactionInvoker = interactionInvoker; _plusHintHelper = plusHintHelper; }
public InteractiveWorkflowManagerFactoryWithPlusHintStep(IWorkflowNavigationHelper workflowNavigationHelper, IPlusHintHelper plusHintHelper, ISignaturePasswordCheck signaturePasswordCheck, IUpdateAssistant updateAssistant) : base(workflowNavigationHelper, signaturePasswordCheck, updateAssistant) { _workflowNavigationHelper = workflowNavigationHelper; _plusHintHelper = plusHintHelper; }
public void Setup() { _plusHintHelper = Substitute.For <IPlusHintHelper>(); }
public PlusHintStep(IPlusHintHelper plusHintHelper) { _plusHintHelper = plusHintHelper; }