1 implementation of IHtmlGenerator
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultHtmlGenerator.cs (1)
24
public class DefaultHtmlGenerator :
IHtmlGenerator
178 references to IHtmlGenerator
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Infrastructure\DefaultPageModelActivatorProviderTest.cs (6)
40
var
generator = Mock.Of<
IHtmlGenerator
>();
70
var
generator = Mock.Of<
IHtmlGenerator
>();
222
public ModelWithServices(
IHtmlGenerator
generator)
227
public
IHtmlGenerator
Generator { get; }
Microsoft.AspNetCore.Mvc.TagHelpers (38)
AnchorTagHelper.cs (4)
44
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
45
public AnchorTagHelper(
IHtmlGenerator
generator)
54
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="AnchorTagHelper"/>'s output.
56
protected
IHtmlGenerator
Generator { get; }
FormTagHelper.cs (4)
35
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
36
public FormTagHelper(
IHtmlGenerator
generator)
54
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="FormTagHelper"/>'s output.
56
protected
IHtmlGenerator
Generator { get; }
InputTagHelper.cs (6)
68
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
69
public InputTagHelper(
IHtmlGenerator
generator)
78
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="InputTagHelper"/>'s output.
80
protected
IHtmlGenerator
Generator { get; }
102
/// <see cref="
IHtmlGenerator
.GenerateTextBox"/>.
111
/// Passed through to the generated HTML in all cases. Also used to determine the <see cref="
IHtmlGenerator
"/>
LabelTagHelper.cs (4)
21
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
22
public LabelTagHelper(
IHtmlGenerator
generator)
38
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="LabelTagHelper"/>'s output.
40
protected
IHtmlGenerator
Generator { get; }
OptionTagHelper.cs (4)
23
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
24
public OptionTagHelper(
IHtmlGenerator
generator)
33
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="OptionTagHelper"/>'s output.
35
protected
IHtmlGenerator
Generator { get; }
SelectTagHelper.cs (4)
29
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
30
public SelectTagHelper(
IHtmlGenerator
generator)
39
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="SelectTagHelper"/>'s output.
41
protected
IHtmlGenerator
Generator { get; }
TextAreaTagHelper.cs (4)
21
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
22
public TextAreaTagHelper(
IHtmlGenerator
generator)
31
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="TextAreaTagHelper"/>'s output.
33
protected
IHtmlGenerator
Generator { get; }
ValidationMessageTagHelper.cs (4)
23
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
24
public ValidationMessageTagHelper(
IHtmlGenerator
generator)
40
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="ValidationMessageTagHelper"/>'s output.
42
protected
IHtmlGenerator
Generator { get; }
ValidationSummaryTagHelper.cs (4)
23
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
24
public ValidationSummaryTagHelper(
IHtmlGenerator
generator)
40
/// Gets the <see cref="
IHtmlGenerator
"/> used to generate the <see cref="ValidationSummaryTagHelper"/>'s output.
43
protected
IHtmlGenerator
Generator { get; }
Microsoft.AspNetCore.Mvc.TagHelpers.Test (49)
AnchorTagHelperTest.cs (7)
108
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
158
var generator = new Mock<
IHtmlGenerator
>();
210
var generator = new Mock<
IHtmlGenerator
>();
268
var generator = new Mock<
IHtmlGenerator
>();
327
var generator = new Mock<
IHtmlGenerator
>();
385
var generator = new Mock<
IHtmlGenerator
>();
436
var generator = new Mock<
IHtmlGenerator
>();
FormTagHelperTest.cs (11)
44
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
398
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
455
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
524
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
645
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
702
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
759
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
815
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
870
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
916
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
964
var generator = new Mock<
IHtmlGenerator
>();
InputTagHelperTest.cs (17)
844
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1178
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1281
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1447
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1544
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1659
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1774
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1851
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1920
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
2014
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
2098
var
htmlGenerator = HtmlGeneratorUtilities.GetHtmlGenerator(metadataProvider);
2155
var
htmlGenerator = HtmlGeneratorUtilities.GetHtmlGenerator(metadataProvider);
2229
var
htmlGenerator = HtmlGeneratorUtilities.GetHtmlGenerator(metadataProvider);
2290
var
htmlGenerator = HtmlGeneratorUtilities.GetHtmlGenerator(metadataProvider);
2353
var
htmlGenerator = HtmlGeneratorUtilities.GetHtmlGenerator(metadataProvider);
2371
IHtmlGenerator
htmlGenerator,
2387
IHtmlGenerator
htmlGenerator,
SelectTagHelperTest.cs (3)
576
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
658
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
787
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
TestableHtmlGenerator.cs (2)
62
IHtmlGenerator
htmlGenerator,
70
IHtmlGenerator
htmlGenerator,
ValidationMessageTagHelperTest.cs (5)
203
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
239
var generator = new Mock<
IHtmlGenerator
>();
305
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
368
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
420
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
ValidationSummaryTagHelperTest.cs (4)
345
var generator = new Mock<
IHtmlGenerator
>();
402
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
468
var generator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
516
var generator = new Mock<
IHtmlGenerator
>();
Microsoft.AspNetCore.Mvc.ViewFeatures (10)
DefaultHtmlGenerator.cs (1)
22
/// Default implementation of <see cref="
IHtmlGenerator
"/>.
DefaultHtmlGeneratorExtensions.cs (5)
9
/// Static class that adds extension methods to <see cref="
IHtmlGenerator
"/>. This class cannot be inherited.
16
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
26
this
IHtmlGenerator
generator,
49
/// <param name="generator">The <see cref="
IHtmlGenerator
"/>.</param>
58
this
IHtmlGenerator
generator,
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (1)
158
services.TryAddSingleton<
IHtmlGenerator
, DefaultHtmlGenerator>();
HtmlHelper.cs (2)
51
private readonly
IHtmlGenerator
_htmlGenerator;
62
IHtmlGenerator
htmlGenerator,
HtmlHelperOfT.cs (1)
26
IHtmlGenerator
htmlGenerator,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (73)
DefaultHtmlGeneratorTest.cs (32)
31
var
htmlGenerator = GetGenerator(metadataProvider);
52
var
htmlGenerator = GetGenerator(metadataProvider);
72
var
htmlGenerator = GetGenerator(metadataProvider);
85
var
htmlGenerator = GetGenerator(metadataProvider);
113
var
htmlGenerator = GetGenerator(metadataProvider);
141
var
htmlGenerator = GetGenerator(metadataProvider);
168
var
htmlGenerator = GetGenerator(metadataProvider);
197
var
htmlGenerator = GetGenerator(metadataProvider);
221
var
htmlGenerator = GetGenerator(metadataProvider);
245
var
htmlGenerator = GetGenerator(metadataProvider);
267
var
htmlGenerator = GetGenerator(metadataProvider);
289
var
htmlGenerator = GetGenerator(metadataProvider);
312
var
htmlGenerator = GetGenerator(metadataProvider);
364
var
htmlGenerator = GetGenerator(metadataProvider, new() { HtmlHelperOptions = htmlHelperOptions });
394
var
htmlGenerator = GetGenerator(metadataProvider, new() { HtmlHelperOptions = htmlHelperOptions });
420
var
htmlGenerator = GetGenerator(metadataProvider);
441
var
htmlGenerator = GetGenerator(metadataProvider);
468
var
htmlGenerator = GetGenerator(metadataProvider);
497
var
htmlGenerator = GetGenerator(metadataProvider);
520
var
htmlGenerator = GetGenerator(metadataProvider);
585
var
htmlGenerator = GetGenerator(metadataProvider);
613
var
htmlGenerator = GetGenerator(metadataProvider);
661
var
htmlGenerator = GetGenerator(metadataProvider);
689
var
htmlGenerator = GetGenerator(metadataProvider);
713
var
htmlGenerator = GetGenerator(metadataProvider);
767
var
htmlGenerator = GetGenerator(metadataProvider);
796
var
htmlGenerator = GetGenerator(metadataProvider);
822
var
htmlGenerator = GetGenerator(metadataProvider);
937
var
htmlGenerator = GetGenerator(metadataProvider);
964
var
htmlGenerator = GetGenerator(metadataProvider);
989
var
htmlGenerator = GetGenerator(metadataProvider);
1002
private static
IHtmlGenerator
GetGenerator(IModelMetadataProvider metadataProvider, MvcViewOptions options = default)
Rendering\DefaultTemplatesUtilities.cs (2)
69
public static HtmlHelper<ObjectTemplateModel> GetHtmlHelper(
IHtmlGenerator
htmlGenerator)
225
IHtmlGenerator
htmlGenerator,
Rendering\HtmlHelperFormExtensionsTest.cs (27)
278
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
315
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
352
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
386
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
430
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
474
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
514
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
548
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
588
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
629
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
670
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
716
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
762
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
808
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
856
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
896
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
934
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
972
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1005
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1043
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1081
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1116
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1155
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1199
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1243
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1287
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
1332
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
Rendering\HtmlHelperFormTest.cs (11)
369
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
407
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
446
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
484
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
524
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
563
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
604
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
641
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
684
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
726
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
770
var htmlGenerator = new Mock<
IHtmlGenerator
>(MockBehavior.Strict);
Rendering\HtmlHelperSelectTest.cs (1)
1574
new Mock<
IHtmlGenerator
>(MockBehavior.Strict).Object,
Microsoft.AspNetCore.Mvc.Views.TestCommon (2)
HtmlGeneratorUtilities.cs (2)
16
public static
IHtmlGenerator
GetHtmlGenerator(IModelMetadataProvider provider)
27
public static
IHtmlGenerator
GetHtmlGenerator(IModelMetadataProvider provider, IUrlHelperFactory urlHelperFactory, MvcViewOptions options)