internal /*for testing purposes*/ ConnectionController(IHost host, IConnectionInformationProvider connectionProvider, IConnectionWorkflowExecutor workflowExecutor) : base(host) { if (host == null) { throw new ArgumentNullException(nameof(host)); } this.host = host; this.WorkflowExecutor = workflowExecutor ?? this; this.connectionProvider = connectionProvider ?? this; this.settings = this.host.GetMefService<IIntegrationSettings>(); this.ConnectCommand = new RelayCommand(this.OnConnect, this.OnConnectStatus); this.RefreshCommand = new RelayCommand<ConnectionInformation>(this.OnRefresh, this.OnRefreshStatus); this.DontWarnAgainCommand = new RelayCommand(this.OnDontWarnAgain, this.OnDontWarnAgainStatus); }
internal /*for testing purposes*/ ConnectionController(IHost host, IConnectionInformationProvider connectionProvider, IConnectionWorkflowExecutor workflowExecutor) : base(host) { if (host == null) { throw new ArgumentNullException(nameof(host)); } this.host = host; this.WorkflowExecutor = workflowExecutor ?? this; this.connectionProvider = connectionProvider ?? this; this.projectSystemHelper = this.host.GetService <IProjectSystemHelper>(); this.projectSystemHelper.AssertLocalServiceIsNotNull(); this.ConnectCommand = new RelayCommand(this.OnConnect, this.CanConnect); this.RefreshCommand = new RelayCommand <ConnectionInformation>(this.OnRefresh, this.CanRefresh); }
internal /*for testing purposes*/ ConnectionController(IHost host, IConnectionInformationProvider connectionProvider, IConnectionWorkflowExecutor workflowExecutor) : base(host) { if (host == null) { throw new ArgumentNullException(nameof(host)); } this.host = host; this.WorkflowExecutor = workflowExecutor ?? this; this.connectionProvider = connectionProvider ?? this; this.settings = this.host.GetMefService <ISonarLintSettings>(); this.ConnectCommand = new RelayCommand(this.OnConnect, this.OnConnectStatus); this.RefreshCommand = new RelayCommand <ConnectionInformation>(this.OnRefresh, this.OnRefreshStatus); this.DontWarnAgainCommand = new RelayCommand(this.OnDontWarnAgain, this.OnDontWarnAgainStatus); }