andrebaltieri / FluentValidator

Fluent Validator is a fluent way to use Notification Pattern with your entities
122 stars 40 forks source link

Added two new methods #9

Closed italojs closed 7 years ago

italojs commented 7 years ago

Added two new methods at ValidationContract class:

        /// <summary>
        /// Given an string, add a notification if it's Null or Empty
        /// </summary>
        /// <param name="str">Property</param>
        /// <param name="message">Error Message (Optional)</param>
        /// <returns></returns>
- IsNotNullOrEmpty(string str, string message)
        /// <summary>
        /// Given an string, add a notification if it's Empty
        /// </summary>
        /// <param name="str">Property</param>
        /// <param name="message">Error Message (Optional)</param>
        /// <returns></returns>
- IsNotEmpty(string str, string message)