public static BuildMessage ( string message ) : |
||
message | string | The message. |
Результат |
/// <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); }
/// <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); }
/// <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); }