public StepServer(IPAddress addr, CommandLineArguments commandLineArguments, IProcessor processor) : base(addr, commandLineArguments.Port) { this.processor = processor; this.verbose = commandLineArguments.Verbose; this.terminateOnDisconnect = commandLineArguments.TerminateOnDisconnect; Console.CancelKeyPress += Console_CancelKeyPress; }
internal static void Main(string[] args) { var commandLineArguments = new CommandLineArguments(args); var stepMother = new StepMother<ConcreteWorldView>(StepSetLoader.GetStepSets()); var processor = new Processor(stepMother, stepMother.StepRunner); // Reset the WorldView before each scenario processor.BeforeScenario += (o, e) => stepMother.ResetWorldView(); processor.BeforeScenario += BeforeScenario; processor.AfterScenario += AfterScenario; processor.BeforeStep += BeforeStep; processor.AfterStep += AfterStep; processor.AtExit += AtExit; new StepServer(IPAddress.Any, commandLineArguments, processor).InitBlock(); }