public ScriptProcessor(TextReader reader, IVendingMachineFactory factory) { this.analyzer = new SENG301VMAnalyzer(); this.analyzer.RegisterVendingMachineFactory(factory); this.parser = new VendingMachineParser(reader, this.analyzer); }
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(); }