/// <summary> /// Creates a cascading value which can be passed to a test contexts render methods. /// </summary> /// <param name="value">Value of the parameter</param> /// <returns>The <see cref="ComponentParameter"/>.</returns> protected static ComponentParameter CascadingValue(object value) { return(ComponentParameter.CreateCascadingValue(null, value)); }
/// <summary> /// Creates a cascading value which can be passed to a test contexts render methods. /// </summary> /// <param name="name">Parameter name</param> /// <param name="value">Value of the parameter</param> /// <returns>The <see cref="ComponentParameter"/>.</returns> protected static ComponentParameter CascadingValue(string name, object value) { return(ComponentParameter.CreateCascadingValue(name, value)); }