Example #1
0
 public CommandHandler(IRecyclingStation recyclingStation, IGarbageProcessor garbageProcessor)
 {
     this.RecyclingStation      = recyclingStation;
     this.GarbageProcessor      = garbageProcessor;
     this.managementRequirement = null;
     this.InitializeStrategies();
 }
Example #2
0
 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;
 }
Example #4
0
 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);
 }
Example #6
0
 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;
 }