Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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();
        }