SetContent->SetHtmlContent
This commit is contained in:
parent
70c0254dc2
commit
fd10621c1a
|
|
@ -189,7 +189,7 @@ namespace Microsoft.AspNetCore.Html
|
||||||
/// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
|
/// <param name="builder">The <see cref="IHtmlContentBuilder"/>.</param>
|
||||||
/// <param name="content">The <see cref="IHtmlContent"/> value that replaces the content.</param>
|
/// <param name="content">The <see cref="IHtmlContent"/> value that replaces the content.</param>
|
||||||
/// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
|
/// <returns>The <see cref="IHtmlContentBuilder"/>.</returns>
|
||||||
public static IHtmlContentBuilder SetContent(this IHtmlContentBuilder builder, IHtmlContent content)
|
public static IHtmlContentBuilder SetHtmlContent(this IHtmlContentBuilder builder, IHtmlContent content)
|
||||||
{
|
{
|
||||||
if (builder == null)
|
if (builder == null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ namespace Microsoft.AspNetCore.Html.Test
|
||||||
var content = new OtherHtmlContent("Hi");
|
var content = new OtherHtmlContent("Hi");
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
builder.SetContent(content);
|
builder.SetHtmlContent(content);
|
||||||
|
|
||||||
// Assert
|
// Assert
|
||||||
Assert.Collection(
|
Assert.Collection(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue