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(); }
public void LoadOldExample() { OldExampleModule oldExampleModule = new OldExampleModule(); oldExampleModule.Load(); }