BuildMessage() public static method

Builds the message.
public static BuildMessage ( string message ) : FluentMessage
message string The message.
return FluentMessage
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }