Example #1
0
 internal void Register(Type sutType, Type ctrType, ITestCaseBuilderChooser chooser)
 {
     if (IsHandling(sutType, ctrType))
     {
         registrations.FirstOrDefault(reg => reg.SystemUnderTestType.Equals(sutType) && reg.ConstraintType.Equals(ctrType)).Chooser = chooser;
     }
     else
     {
         registrations.Add(new BuilderRegistration(sutType, ctrType, chooser));
     }
 }
Example #2
0
 public BuilderRegistration(Type sutType, Type ctrType, ITestCaseBuilderChooser chooser)
     : this(sutType, ctrType)
 {
     Chooser = chooser;
     Chooser.Target = this;
 }
Example #3
0
 public BuilderRegistration(Type sutType, Type ctrType, ITestCaseBuilderChooser chooser)
     : this(sutType, ctrType)
 {
     Chooser        = chooser;
     Chooser.Target = this;
 }
Example #4
0
 internal void Register(Type sutType, Type ctrType, ITestCaseBuilderChooser chooser)
 {
     if (IsHandling(sutType, ctrType))
         registrations.FirstOrDefault(reg => reg.SystemUnderTestType.Equals(sutType) && reg.ConstraintType.Equals(ctrType)).Chooser = chooser;
     else
         registrations.Add(new BuilderRegistration(sutType, ctrType, chooser));
 }