/// <summary> /// Whens the validate. /// </summary> /// <param name="builder">The builder.</param> /// <param name="validator">The validator.</param> /// <returns></returns> /// <autogeneratedoc /> /// TODO Edit XML Comment Template for WhenValidateModel public static ITestDefinition <BookSerial> Validate(this ITestDefinition <BookSerial> builder, IBookSerialValidator validator) { void When(BookSerial x) { validator.Validate(x.ToString()); } builder.Invoke(When); return(builder); }
public static ITestDefinition <BookValidator> Validate(this ITestDefinition <BookValidator> builder, Book book) { return(builder.Invoke(x => x.Validate(book))); }
public static ITestDefinition <SerialValidator> Validate(this ITestDefinition <SerialValidator> fixture, string serial) { return(fixture.Invoke(x => x.Validate(serial))); }
public static ITestDefinition <ResultTester> Transform(this ITestDefinition <ResultTester> builder, string text) { return(builder.Invoke(x => x.Transform(text))); }
public static ITestDefinition <Book> PerformValidateModel(this ITestDefinition <Book> builder, string paramName) { return(builder.Invoke(x => x.ValidateModel(paramName))); }