Exemple #1
0
        internal /*for testing purposes*/ BindingController(IHost host, IBindingWorkflowExecutor workflowExecutor)
            : base(host)
        {
            if (host == null)
            {
                throw new ArgumentNullException(nameof(host));
            }

            this.host = host;

            this.BindCommand         = new RelayCommand <BindCommandArgs>(this.OnBind, this.OnBindStatus);
            this.workflowExecutor    = workflowExecutor ?? this;
            this.projectSystemHelper = this.host.GetService <IProjectSystemHelper>();
            this.projectSystemHelper.AssertLocalServiceIsNotNull();
        }
        internal /*for testing purposes*/ BindingController(IHost host, IBindingWorkflowExecutor workflow)
            : base(host)
        {
            if (host == null)
            {
                throw new ArgumentNullException(nameof(host));
            }

            this.host = host;

            this.BindCommand = new RelayCommand<ProjectViewModel>(this.OnBind, this.OnBindStatus);
            this.workflow = workflow ?? this;
            this.projectSystemHelper = this.ServiceProvider.GetService<IProjectSystemHelper>();
            this.projectSystemHelper.AssertLocalServiceIsNotNull();
        }