public CommandHandler(IRecyclingStation recyclingStation, IGarbageProcessor garbageProcessor) { this.RecyclingStation = recyclingStation; this.GarbageProcessor = garbageProcessor; this.managementRequirement = null; this.InitializeStrategies(); }
public Engine(IReader reader, IWriter writer, IRecyclingStation recyclingStation) { this.Reader = reader; this.Writer = writer; this.RecyclingStation = recyclingStation; this.RecyclingStationMethods = this.RecyclingStation.GetType().GetMethods(); }
public ProcessGarbageCommand(IRecyclingStation recyclingStation, string name, double weight, double volumePerKg, string type) : base(recyclingStation) { this.wasteName = name; this.wasteWeight = weight; this.volumePerKg = volumePerKg; this.type = type; }
public StatusCommand(IRecyclingStation recyclingStation) : base(recyclingStation) { }
public RecyclingStationController(GarbageFactory garbageFactory, IStrategyHolder strategyHolder, IRecyclingStation recyclingStation) { this.garbageFactory = garbageFactory; this.RecylingStation = recyclingStation; this.strategyHolder = strategyHolder; this.garbageProcessor = new GarbageProcessor(strategyHolder); }
public CommandInterpreter(IRecyclingStation rs, IGarbageProcessor gp, IGarbageFactory gf) { this.rs = rs; this.gp = gp; this.gf = gf; }
protected BaseCommand(IRecyclingStation recyclingStation) { this.RecyclingStation = recyclingStation; }
public Engine(IReader reader, IWriter writer, IRecyclingStation recyclingStation) { this.Reader = reader; this.Writer = writer; this.RecyclingStation = recyclingStation; }