private SpecificationEngine buildBatchedEngine(string tracingStyle) { IBatchObserver batchObserver = new BatchObserver(); IExecutionObserver executionObserver = new NulloObserver(); if ("TeamCity" == tracingStyle) { batchObserver = new TeamCityBatchObserver(batchObserver); executionObserver = new TeamCityExecutionObserver(); } var executionMode = new BatchExecutionMode(batchObserver); var runner = new SpecRunner(executionMode, _system, _specExpiration); var engine = new SpecificationEngine( _system, runner, executionObserver); _controller = new BatchController(engine, batchObserver); _disposables.Add(engine); EventAggregator.Messaging.AddListener(_controller); return(engine); }
public void run_st_spec() { using (var runner = new SpecRunner<NulloSystem>()) { var results = runner.Run("Event Store/Projections/Inline Aggregation by Stream"); runner.OpenResultsInBrowser(); } }
public void run_st_spec() { using (var runner = new SpecRunner<NulloSystem>()) { var results = runner.Run("Linq Queries/DateTime querying"); runner.OpenResultsInBrowser(); } }
public void run_st_spec() { using (var runner = new SpecRunner<NulloSystem>()) { var results = runner.Run("Event Store/Event Capture/Version a stream as part of event capture"); runner.OpenResultsInBrowser(); } }
private SpecificationEngine buildUserInterfaceEngine() { var observer = new UserInterfaceObserver(); var runner = new SpecRunner(new UserInterfaceExecutionMode(observer), _system, _specExpiration); var executionObserver = new UserInterfaceExecutionObserver(); var engine = new SpecificationEngine(_system, runner, executionObserver); _controller = new EngineController(engine, observer, runner); // Super hokey, but we need some way to feed the spec started // event up to EngineController // TODO -- maybe pull the IExecutionQueue concept from 1-2 back out executionObserver.Controller = (EngineController)_controller; _disposables.Add(observer); _disposables.Add(engine); EventAggregator.Messaging.AddListener(_controller); return(engine); }
private SpecificationEngine buildUserInterfaceEngine() { var observer = new UserInterfaceObserver(); var runner = new SpecRunner(new UserInterfaceExecutionMode(observer), _system, _specExpiration); var executionObserver = new UserInterfaceExecutionObserver(); var engine = new SpecificationEngine(_system, runner, executionObserver); _controller = new EngineController(engine, observer, runner); // Super hokey, but we need some way to feed the spec started // event up to EngineController // TODO -- maybe pull the IExecutionQueue concept from 1-2 back out executionObserver.Controller = (EngineController) _controller; _services.Add(observer); _services.Add(engine); EventAggregator.Messaging.AddListener(_controller); return engine; }
private SpecificationEngine buildBatchedEngine(string tracingStyle) { IBatchObserver batchObserver = new BatchObserver(); IExecutionObserver executionObserver = new NulloObserver(); if ("TeamCity" == tracingStyle) { batchObserver = new TeamCityBatchObserver(batchObserver); executionObserver = new TeamCityExecutionObserver(); } var executionMode = new BatchExecutionMode(batchObserver); var runner = new SpecRunner(executionMode, _system, _specExpiration); var engine = new SpecificationEngine( _system, runner, executionObserver); _controller = new BatchController(engine, batchObserver); _services.Add(engine); EventAggregator.Messaging.AddListener(_controller); return engine; }