Esempio n. 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));
     }
 }
Esempio n. 2
0
 public BuilderRegistration(Type sutType, Type ctrType, ITestCaseBuilderChooser chooser)
     : this(sutType, ctrType)
 {
     Chooser = chooser;
     Chooser.Target = this;
 }
Esempio n. 3
0
 public BuilderRegistration(Type sutType, Type ctrType, ITestCaseBuilderChooser chooser)
     : this(sutType, ctrType)
 {
     Chooser        = chooser;
     Chooser.Target = this;
 }
Esempio n. 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));
 }