public Engine(IResourcesDatabase resDatabase) { this.resDatabase = resDatabase; this.strategyholder = new StrategyHolder(); this.garbageProcessor = new GarbageProcessor(this.strategyholder); this.resController = new ResourcesController(this.resDatabase, this.garbageProcessor); this.comExecutor = new CommandExecutor(this.resController); this.consoleReader = new ConsoleReader(); this.consoleWriter = new ConsoleWriter(); this.inputInterpreter = new InputInterpreter(); }
public ResourcesController(IResourcesDatabase database, IGarbageProcessor garbageProcessor) { this.database = database; this.garbageProcessor = garbageProcessor; this.ManagementRequirement = null; }
public ResourcesController(IResourcesDatabase database, IGarbageProcessor garbageProcessor) { this.database = database; this.garbageProcessor = garbageProcessor; }