Esempio n. 1
0
        static void Main(string[] args)
        {
            OldExampleModule oldExampleModule = new OldExampleModule();

            oldExampleModule.Load();

            // Injeção de dependencia
            IConfigurationResource configurationResource = new ConfigurationResource();
            IModuleResource        moduleResource        = new ModuleResource();

            NewExampleModule newExampleModule = new NewExampleModule(configurationResource, moduleResource);

            newExampleModule.Load();
        }
Esempio n. 2
0
        public void LoadOldExample()
        {
            OldExampleModule oldExampleModule = new OldExampleModule();

            oldExampleModule.Load();
        }