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(); }
public void Should_load_step_definitions_from_external_assembly_in_options() { var assemblyPaths = new List<string>{"Cuke4Nuke.TestStepDefinitions.dll"}; var loader = new Loader(assemblyPaths); _stepDefinitions = loader.Load(); AssertAllMethodsLoaded(ExternalStepDefinitionClass); }
public Processor(Loader loader, ObjectFactory objectFactory) { _loader = loader; _objectFactory = objectFactory; _repository = _loader.Load(); // Register TypeConverter for Cuke4Nuke.Framework.Table TypeConverterAttribute attr = new TypeConverterAttribute(typeof(TableConverter)); TypeDescriptor.AddAttributes(typeof(Table), new Attribute[] { attr }); }
public void Should_load_step_definitions_from_multiple_assemblies_in_options() { var assemblyPaths = new List<string> { "Cuke4Nuke.TestStepDefinitions.dll", "Cuke4Nuke.Specifications.dll" }; var loader = new Loader(assemblyPaths, new ObjectFactory()); _stepDefinitions = loader.Load().StepDefinitions; AssertAllMethodsLoaded(ValidStepDefinitionClass); AssertAllMethodsLoaded(ExternalStepDefinitionClass); }
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 Processor(Loader loader) { _loader = loader; }
public Processor(Loader loader, ObjectFactory objectFactory) { _loader = loader; _objectFactory = objectFactory; _repository = _loader.Load(); }