Example #1
0
        protected override void InitializeTypeSpecificFields(object suite, SuiteProvider provider)
        {
            var suiteType = suite.GetType();
              var closedSpeckType = suiteType.GetClosedTypeOf(typeof (ISuite<>)).AssertNotNull();
              var subjectType = closedSpeckType.GetGenericArguments().Single();

              var suiteController = _controllerFactory.CreateClassSuiteController(suite, subjectType, provider);

              suite.SetMemberValue("_classSuiteController", suiteController);
              suite.SetMemberValue("_subjectFactory", _subjectFactory);
        }
Example #2
0
 public ClassSuiteController(SuiteProvider provider, ISuite suite, IEnumerable<ITestExtension> testExtensions, IOperationSorter operationSorter)
     : base(provider, operationSorter)
 {
     _suite = suite;
       _testExtensions = testExtensions;
 }
Example #3
0
 protected abstract void InitializeTypeSpecificFields(object suite, SuiteProvider provider);
Example #4
0
 public ISuiteController Create(SuiteProvider suiteProvider)
 {
     return new SuiteController(suiteProvider, _operationSorter);
 }