public ITestController <TSubject, TResult, Dummy, TNewSequence> SetSequences <TNewSequence> (IDictionary <string, TNewSequence> sequences) { var mainContext = (MainTestContext <TSubject, TResult, Dummy, TSequence>)(object) _context; var configurator = mainContext.Configurator; var actionContainer = mainContext.ActionContainer; var combinationSuiteProvider = SuiteProvider.Create(_provider.Identity, _provider.Text, _provider.IgnoreReason); _suiteProvider.SuiteProviders = _suiteProvider.SuiteProviders.Concat(new[] { combinationSuiteProvider }); _suiteProvider.TestProviders = _suiteProvider.TestProviders.Except(new[] { _provider }); var testControllers = sequences.Select( x => CreateCombinationTestController(combinationSuiteProvider, configurator, actionContainer, x.Key, x.Value)); return(_controllerFactory.CreateCompositeTestController(testControllers)); }
public ITestController <TSubject, TResult, TNewVars, TSequence> SetVariables <TNewVars> (Func <Dummy, TNewVars> variablesProvider) { var delegateControllers = _controllers.Select(x => x.SetVariables(variablesProvider)); return(_controllerFactory.CreateCompositeTestController(delegateControllers)); }