/// <summary> /// Determines whether the postcode is valid. /// </summary> /// <param name="postcode">The postcode to validate.</param> /// <returns>An <see cref="Outcome"/> with the outcome of the validation.</returns> public static Outcome CheckPostcode(string postcode) { return(Outcomes.Determine(ValidatePostcode(postcode))); }
/// <summary> /// Determines whether the country is valid. /// </summary> /// <param name="country">The country to validate.</param> /// <returns>An <see cref="Outcome"/> with the outcome of the validation.</returns> public static Outcome CheckCountry(string country) { return(Outcomes.Determine(ValidateCountry(country))); }
/// <summary> /// Determines whether the suburb locality is valid. /// </summary> /// <param name="suburbLocality">The suburb locality to validate.</param> /// <returns>An <see cref="Outcome"/> with the outcome of the validation.</returns> public static Outcome CheckSuburbLocality(string suburbLocality) { return(Outcomes.Determine(ValidateSuburbLocality(suburbLocality))); }
/// <summary> /// Determines whether the state or province is valid. /// </summary> /// <param name="stateProvince">The state or province to validate.</param> /// <returns>An <see cref="Outcome"/> with the outcome of the validation.</returns> public static Outcome CheckStateProvince(string stateProvince) { return(Outcomes.Determine(ValidateStateProvince(stateProvince))); }
/// <summary> /// Determines whether the specified URL is valid. /// </summary> /// <param name="url">The URL to validate.</param> /// <returns>An <see cref="Outcome"/> with the outcome of the validation.</returns> public static Outcome CheckUrl(string url) { return(Outcomes.Determine(ValidateUrl(url))); }
/// <summary> /// Determines whether the specified event name is valid. /// </summary> /// <param name="eventName">The event name to validate.</param> /// <returns>An <see cref="Outcome"/> with the outcome of the validation.</returns> public static Outcome CheckEventName(string eventName) { return(Outcomes.Determine(ValidateEventName(eventName))); }
/// <summary> /// Determines whether the value is valid for an email. /// </summary> /// <param name="value">The value to validate.</param> /// <returns>An <see cref="Outcome"/> with the outcome of the validation.</returns> public static Outcome CheckValue(string value) { return(Outcomes.Determine(ValidateValue(value))); }
/// <summary> /// Determines whether the name is valid. /// </summary> /// <param name="name">The name to validate.</param> /// <returns>An <see cref="Outcome"/> with the outcome of the validation.</returns> public static Outcome CheckName(string name) { return(Outcomes.Determine(ValidateName(name))); }