Esempio n. 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;
 }
Esempio n. 2
0
 internal ScenarioRunner(Scenario scenario, CoreFactory factory)
 {
     this.scenario = scenario;
     this.factory = factory;
     stepExecutor = factory.CreateStepExecutor(scenario);
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
 }
Esempio n. 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);
 }
Esempio n. 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());
 }
Esempio n. 5
0
 public TestRunBuilder(CoreFactory factory, TestRun testRun)
 {
     this.factory = factory;
     areaCache = factory.CreateAreaCache();
     featureCache = factory.CreateFeatureCache();
     testRunInitializer = factory.CreateTestRunInitializer();
     TestRun = testRun;
 }
Esempio n. 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);
 }
Esempio n. 7
0
 static void EnsureFactory()
 {
     if (factory == null)
         factory = new CoreFactory();
 }
Esempio n. 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();
 }
Esempio n. 10
0
		internal FeatureCache(CoreFactory factory)
		{
			this.factory = factory;
			this.features = new List<Feature>();
		}
Esempio n. 11
0
 public StepExecutor(Scenario scenario, CoreFactory factory)
 {
     stepExceptionHandler = factory.CreateStepExceptionHandler(scenario);
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
     this.scenario = scenario;
 }
Esempio n. 12
0
 internal FeatureCache(CoreFactory factory)
 {
     this.factory  = factory;
     this.features = new List <Feature>();
 }
Esempio n. 13
0
 internal StepExecutor(Scenario scenario, CoreFactory factory)
 {
     stepExceptionHandler = factory.CreateStepExceptionHandler(scenario);
     statsCascader        = factory.UtilityFactory.CreateStatsCascader();
     this.scenario        = scenario;
 }
Esempio n. 14
0
 internal CapabilityCache(CoreFactory factory)
 {
     this.factory      = factory;
     this.capabilities = new List <Capability>();
 }