Example #1
0
 /// <summary>
 /// Creates a new test run builder.
 /// </summary>
 /// <param name="factory"></param>
 /// <param name="testRun"></param>
 internal TestRunBuilder(CoreFactory factory, TestRun testRun)
 {
     this.factory         = factory;
     this.capabilityCache = factory.CreateCapabilityCache();
     this.featureCache    = factory.CreateFeatureCache();
     this.TestRun         = testRun;
 }
Example #2
0
 internal ScenarioRunner(Scenario scenario, CoreFactory factory)
 {
     this.scenario = scenario;
     this.factory = factory;
     stepExecutor = factory.CreateStepExecutor(scenario);
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
 }
Example #3
0
 internal ScenarioBuilder(string scenarioName, Feature feature, CoreFactory factory)
 {
     this.factory = factory;
     outcomeAggregator = factory.UtilityFactory.CreateOutcomeAggregator();
     scenario = factory.CreateScenario(scenarioName, feature);
     runner = factory.CreateScenarioRunner(scenario);
 }
Example #4
0
 internal ScenarioRunner(Scenario scenario, CoreFactory factory)
 {
     this.scenario = scenario;
     this.factory  = factory;
     stepExecutor  = factory.CreateStepExecutor(scenario);
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
     this.SetOutputWriter(new OutputWriter());
 }
Example #5
0
 public TestRunBuilder(CoreFactory factory, TestRun testRun)
 {
     this.factory = factory;
     areaCache = factory.CreateAreaCache();
     featureCache = factory.CreateFeatureCache();
     testRunInitializer = factory.CreateTestRunInitializer();
     TestRun = testRun;
 }
Example #6
0
 internal ScenarioBuilder(
     string scenarioName,
     Feature feature,
     CoreFactory factory,
     string methodName,
     string explanation,
     TextFormat explanationFormat,
     string[] assignments,
     string[] tags,
     int sortOrder)
 {
     this.factory      = factory;
     outcomeAggregator = factory.UtilityFactory.CreateOutcomeAggregator();
     scenario          = factory.CreateScenario(scenarioName, feature, methodName, explanation, explanationFormat, assignments, tags, sortOrder);
     runner            = factory.CreateScenarioRunner(scenario);
 }
Example #7
0
 static void EnsureFactory()
 {
     if (factory == null)
         factory = new CoreFactory();
 }
Example #8
0
		public AreaCache(CoreFactory factory)
		{
			this.factory = factory;
			this.areas = new List<Area>();
		}
 public StepExceptionHandler(Scenario scenario, CoreFactory factory)
 {
     this.scenario = scenario;
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
 }
Example #10
0
		internal FeatureCache(CoreFactory factory)
		{
			this.factory = factory;
			this.features = new List<Feature>();
		}
Example #11
0
 public StepExecutor(Scenario scenario, CoreFactory factory)
 {
     stepExceptionHandler = factory.CreateStepExceptionHandler(scenario);
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
     this.scenario = scenario;
 }
Example #12
0
 internal FeatureCache(CoreFactory factory)
 {
     this.factory  = factory;
     this.features = new List <Feature>();
 }
Example #13
0
 internal StepExecutor(Scenario scenario, CoreFactory factory)
 {
     stepExceptionHandler = factory.CreateStepExceptionHandler(scenario);
     statsCascader        = factory.UtilityFactory.CreateStatsCascader();
     this.scenario        = scenario;
 }
Example #14
0
 internal CapabilityCache(CoreFactory factory)
 {
     this.factory      = factory;
     this.capabilities = new List <Capability>();
 }