コード例 #1
0
    public RecyclingManager(IGarbageProcessor garbageProcessor, IWasteFactory wasteFactory)
    {
        this.garbageProcessor = garbageProcessor;
        this.wasteFactory     = wasteFactory;
        this.energyBalance    = 0;
        this.capitalBalance   = 0;

        this.energyRequired  = 0;
        this.capitalRequired = 0;
        this.restrictedType  = null;
    }
コード例 #2
0
 public RecyclingManager(IGarbageProcessor garbageProcessor, IWasteFactory wasteFactory)
 {
     this.garbageProcessor = garbageProcessor;
     this.wasteFactory     = wasteFactory;
 }
コード例 #3
0
 public CommandInterpreter(IRepository repo, IWasteFactory wasteFactory, IGarbageProcessor processor)
 {
     this.repo         = repo;
     this.wasteFactory = wasteFactory;
     this.processor    = processor;
 }
コード例 #4
0
 public ProcessGarbageCommand(IGarbageProcessor garbageProcessor, IWasteFactory wasteFactory)
 {
     this.garbageProcessor = garbageProcessor;
     this.wasteFactory     = wasteFactory;
 }