public void Setup()
        {
            processCaller = Substitute.For<IProcessCaller>();
            validateFile = Substitute.For<IValidateFile>();

            createCloneGit = new CreateCloneGit(processCaller, validateFile);
        }
        public ToolsObserver(PanelViewModel panel)
        {
            _materialRemoveData = MVMIoc.SimpleIoc <IMaterialRemoveData> .GetInstance();

            _panel = panel;
            _panel.ValueChanged += OnPanelOffsetValueChanged;
            _processCaller       = MVMIoc.SimpleIoc <IProcessCaller> .GetInstance();

            _processCaller.ProcessRequest += OnProcessRequest;
        }
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                // Dispose managed state (managed objects).
                _processCaller.ProcessRequest -= OnProcessRequest;
                _processCaller       = null;
                _panel.ValueChanged -= OnPanelOffsetValueChanged;
                foreach (var tool in _tools)
                {
                    UnregisterLinks(tool);
                }
                _tools.Clear();
            }

            _disposed = true;
        }
 public CreateBareGit(IProcessCaller processCaller) {
     this.processCaller = processCaller;
 }
 public CreateCloneGit(IProcessCaller processCaller, IValidateFile validateFile) {
     this.processCaller = processCaller;
     this.validateFile = validateFile;
 }