Inheritance: IProcessor
Esempio n. 1
0
        static void Main(string[] args)
        {
            var options = new Options(args);
            var loader = new Loader(options.AssemblyPaths);
            var processor = new Processor(loader);
            var listener = new Listener(processor, options.Port);

            new NukeServer(listener, Console.Out, options).Start();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var options = new Options(args);
            var objectFactory = new ObjectFactory();
            var loader = new Loader(options.AssemblyPaths, objectFactory);
            var processor = new Processor(loader, objectFactory);
            var listener = new Listener(processor, options.Port);
            log4net.Config.XmlConfigurator.Configure();

            new NukeServer(listener, options).Start();
        }
        public void SetUp()
        {
            _stepDefinition = new StepDefinition(Reflection.GetMethod(GetType(), "Method"));
            _exceptionDefinition = new StepDefinition(Reflection.GetMethod(GetType(), "ThrowsException"));
            _stepDefinitions = new List<StepDefinition> { _stepDefinition, _exceptionDefinition };

            var loader = new MockLoader(_stepDefinitions);
            _processor = new Processor(loader);

            _methodCalled = false;
        }
        public void SetUp()
        {
            _stepDefinition = new StepDefinition(Reflection.GetMethod(GetType(), "Method"));
            _exceptionDefinition = new StepDefinition(Reflection.GetMethod(GetType(), "ThrowsException"));
            _stepDefinitionWithOneStringParameter = new StepDefinition(GetType().GetMethod("OneStringParameter"));
            _stepDefinitionWithMultipleStringParameters = new StepDefinition(GetType().GetMethod("MultipleStringParameters", new Type[] { typeof(string), typeof(string) }));
            _stepDefinitionWithOneIntParameter = new StepDefinition(GetType().GetMethod("OneIntParameter"));
            _stepDefinitionWithOneDoubleParameter = new StepDefinition(GetType().GetMethod("OneDoubleParameter"));
            _stepDefinitionWithIntDoubleAndStringParameters = new StepDefinition(GetType().GetMethod("IntDoubleAndStringParameters"));
            _stepDefinitions = new List<StepDefinition> { _stepDefinition, _exceptionDefinition, _stepDefinitionWithOneStringParameter, _stepDefinitionWithMultipleStringParameters, _stepDefinitionWithOneIntParameter, _stepDefinitionWithOneDoubleParameter, _stepDefinitionWithIntDoubleAndStringParameters };

            var loader = new MockLoader(_stepDefinitions);
            _processor = new Processor(loader);

            _methodCalled = false;
            _receivedParameters = null;
        }
        public void SetUp()
        {
            _stepDefinition = new StepDefinition(Reflection.GetMethod(GetType(), "CheckMethodCalled"));
            _exceptionDefinition = new StepDefinition(Reflection.GetMethod(GetType(), "ThrowsException"));
            _stepDefinitionWithOneStringParameter = new StepDefinition(GetType().GetMethod("OneStringParameter"));
            _stepDefinitionWithMultipleStringParameters = new StepDefinition(GetType().GetMethod("MultipleStringParameters", new Type[] { typeof(string), typeof(string) }));
            _stepDefinitionWithMultipleStringParametersOverloaded = new StepDefinition(GetType().GetMethod("MultipleStringParameters", new Type[] { typeof(string), typeof(string), typeof(string) }));
            _stepDefinitionWithOneIntParameter = new StepDefinition(GetType().GetMethod("OneIntParameter"));
            _stepDefinitionWithOneDoubleParameter = new StepDefinition(GetType().GetMethod("OneDoubleParameter"));
            _stepDefinitionWithIntDoubleAndStringParameters = new StepDefinition(GetType().GetMethod("IntDoubleAndStringParameters"));
            _pendingStepDefinition = new StepDefinition(GetType().GetMethod("Pending"));
            _stepDefinitionWithTableDiff = new StepDefinition(GetType().GetMethod("TableDiff"));

            _stepDefinitions = new List<StepDefinition> {
                _stepDefinition,
                _exceptionDefinition,
                _stepDefinitionWithOneStringParameter,
                _stepDefinitionWithMultipleStringParameters,
                _stepDefinitionWithMultipleStringParametersOverloaded,
                _stepDefinitionWithOneIntParameter,
                _stepDefinitionWithOneDoubleParameter,
                _stepDefinitionWithIntDoubleAndStringParameters,
                _pendingStepDefinition,
                _stepDefinitionWithTableDiff
            };
            var loader = new MockLoader(_stepDefinitions);
            var objectFactory = new ObjectFactory();
            _processor = new Processor(loader, objectFactory);

            _methodCalled = false;
            _receivedParameters = null;
        }