BuildMessage() public static méthode

Builds the message.
public static BuildMessage ( string message ) : FluentMessage
message string The message.
Résultat FluentMessage
Exemple #1
0
        /// <summary>
        /// Builds an error message in.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <returns>A <see cref="FluentMessage"/> instance.</returns>
        public FluentMessage BuildMessage(string message)
        {
            var result = FluentMessage.BuildMessage(message);

            result.On(this.Value);
            return(result);
        }
Exemple #2
0
        /// <summary>
        /// Builds an error message.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <returns>A <see cref="FluentMessage"/> instance.</returns>
        public FluentMessage BuildShortMessage(string message)
        {
            var result = FluentMessage.BuildMessage(message);

            if (!string.IsNullOrEmpty(this.sutLabel))
            {
                result.For(this.sutLabel);
            }

            return(result);
        }
Exemple #3
0
        /// <summary>
        /// Builds an error message.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <returns>A <see cref="FluentMessage"/> instance.</returns>
        public FluentMessage BuildShortMessage(string message)
        {
            var result = FluentMessage.BuildMessage(message);

            return(result);
        }