//Todo: See if this can be refactored with better IoC private void SetDependencies() { var dte = ((DTE)GetService(typeof(DTE))); var solution = dte != null ? dte.Solution : null; _commandService = (OleMenuCommandService) GetService(typeof (IMenuCommandService)); _tortoiseGitLauncherService = (ITortoiseGitLauncherService) GetService(typeof (TortoiseGitLauncherService)) ?? new TortoiseGitLauncherService(new ProcessManagerService(), solution); }
//Todo: See if this can be refactored with better IoC private void SetDependencies() { var dte = ((DTE)GetService(typeof(DTE))); var solution = dte != null ? (Solution2)dte.Solution : null; _commandService = (OleMenuCommandService)GetService(typeof(IMenuCommandService)); _tortoiseGitLauncherService = (ITortoiseGitLauncherService)GetService(typeof(TortoiseGitLauncherService)) ?? new TortoiseGitLauncherService(new ProcessManagerService(), solution); }