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