コード例 #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;
 }
コード例 #2
0
 internal ScenarioRunner(Scenario scenario, CoreFactory factory)
 {
     this.scenario = scenario;
     this.factory = factory;
     stepExecutor = factory.CreateStepExecutor(scenario);
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
 }
コード例 #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);
 }
コード例 #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());
 }
コード例 #5
0
 public TestRunBuilder(CoreFactory factory, TestRun testRun)
 {
     this.factory = factory;
     areaCache = factory.CreateAreaCache();
     featureCache = factory.CreateFeatureCache();
     testRunInitializer = factory.CreateTestRunInitializer();
     TestRun = testRun;
 }
コード例 #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);
 }
コード例 #7
0
ファイル: xB.cs プロジェクト: Stewartarmbrecht/xBDD
 static void EnsureFactory()
 {
     if (factory == null)
         factory = new CoreFactory();
 }
コード例 #8
0
ファイル: AreaCache.cs プロジェクト: Stewartarmbrecht/xBDD
		public AreaCache(CoreFactory factory)
		{
			this.factory = factory;
			this.areas = new List<Area>();
		}
コード例 #9
0
 public StepExceptionHandler(Scenario scenario, CoreFactory factory)
 {
     this.scenario = scenario;
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
 }
コード例 #10
0
ファイル: FeatureCache.cs プロジェクト: Stewartarmbrecht/xBDD
		internal FeatureCache(CoreFactory factory)
		{
			this.factory = factory;
			this.features = new List<Feature>();
		}
コード例 #11
0
ファイル: StepExecutor.cs プロジェクト: Stewartarmbrecht/xBDD
 public StepExecutor(Scenario scenario, CoreFactory factory)
 {
     stepExceptionHandler = factory.CreateStepExceptionHandler(scenario);
     statsCascader = factory.UtilityFactory.CreateStatsCascader();
     this.scenario = scenario;
 }
コード例 #12
0
 internal FeatureCache(CoreFactory factory)
 {
     this.factory  = factory;
     this.features = new List <Feature>();
 }
コード例 #13
0
ファイル: StepExecutor.cs プロジェクト: Stewartarmbrecht/xBDD
 internal StepExecutor(Scenario scenario, CoreFactory factory)
 {
     stepExceptionHandler = factory.CreateStepExceptionHandler(scenario);
     statsCascader        = factory.UtilityFactory.CreateStatsCascader();
     this.scenario        = scenario;
 }
コード例 #14
0
 internal CapabilityCache(CoreFactory factory)
 {
     this.factory      = factory;
     this.capabilities = new List <Capability>();
 }