Example #1
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();
        }