Ejemplo n.º 1
0
        private static void RegisterEverything()
        {
            var settingsProvider = new SettingsProvider(Environment.CurrentDirectory + SettingsPath);
            ServiceLocator.AddService<SettingsProvider>(settingsProvider);

            var drawer = new ConsolePrinter();
            ServiceLocator.AddService<IDrawer>(drawer);
        }
Ejemplo n.º 2
0
        private static void RegisterEverything()
        {
            var settingsProvider = new SettingsProvider(Environment.CurrentDirectory + SettingsPath);

            ServiceLocator.AddService <SettingsProvider>(settingsProvider);

            var drawer = new ConsolePrinter();

            ServiceLocator.AddService <IDrawer>(drawer);
        }