Пример #1
0
 public ScriptProcessor(TextReader reader, IVendingMachineFactory factory)
 {
     this.analyzer = new SENG301VMAnalyzer();
     this.analyzer.RegisterVendingMachineFactory(factory);
     this.parser = new VendingMachineParser(reader, this.analyzer);
 }
Пример #2
0
 public ScriptProcessor(string pathToScript, IVendingMachineFactory factory) :
     this(new StreamReader(File.OpenRead(pathToScript)), factory)
 {
 }
 public void RegisterVendingMachineFactory(IVendingMachineFactory vm)
 {
     this.vm         = vm;
     this.extraction = new List <IDeliverable>();
     this.teardown   = new VendingMachineStoredContents();
 }