/// <summary> /// Haves the minimum length. /// </summary> /// <typeparam name="TOwner"> /// The type of the owner. /// </typeparam> /// <param name="should"> /// The should. /// </param> /// <param name="length"> /// The length. /// </param> /// <returns></returns> public static TOwner HaveMinLength <TOwner>(this IFieldVerificationProvider <string, ValidationMessage <TOwner>, TOwner> should, int length) where TOwner : PageObject <TOwner> { return(should.EndWithIgnoringCase($"field must be at least {length} characters.")); }
/// <summary> /// Bes the required. /// </summary> /// <typeparam name="TOwner"> /// The type of the owner. /// </typeparam> /// <param name="should"> /// The should. /// </param> /// <returns></returns> public static TOwner BeRequired <TOwner>(this IFieldVerificationProvider <string, ValidationMessage <TOwner>, TOwner> should) where TOwner : PageObject <TOwner> { return(should.EndWithIgnoringCase("field is required.")); }