public void Setup() { _appSettings = new AppSettings( "", () => { return new ICommandHandler[] { new Fake_CommandHandler() }; }, () => { return new ICommandHandler[] { new Fake_LanguageCommandHandler() }; }); }
public DIContainer(AppSettings settings) { _settings = settings; _dispatcher = new CommandDispatcher( GetDefaultHandlers().ToArray(), GetPluginHandlers, EventDispatcher()); }
public DIContainer(AppSettings settings) { _settings = settings; }
public DIContainer(AppSettings settings) { _settings = settings; CoreExtensions.ProcessExtensions.SetDispatcher(dispatchMessage); }
public static void Initialize() { Settings = new AppSettings( Path.GetDirectoryName( Assembly.GetExecutingAssembly().Location), getDefaultHandlers, getLanguageHandlers); _interpreters = new Interpreters(Environment.CurrentDirectory); ProcessExtensions.GetInterpreter = (file) => { return _interpreters .GetInterpreterFor(Path.GetExtension(file)); }; _container = new DIContainer(Settings); }