Implemented interface member:
28 references to Add
Microsoft.AspNetCore.Mvc.TagHelpers.Test (15)
TagHelperOutputExtensionsTest.cs (8)
782
tagBuilder.Attributes.
Add
(attr.Key, attr.Value);
808
tagBuilder.Attributes.
Add
("type", "hello");
830
tagBuilder.Attributes.
Add
("class", "btn");
858
tagBuilder.Attributes.
Add
(updateName, "btn");
883
tagBuilder.Attributes.
Add
("visible", "val < 3");
906
tagBuilder.Attributes.
Add
("class", "btn");
907
tagBuilder.Attributes.
Add
("class2", "btn");
956
tagBuilder.Attributes.
Add
("for", "hello");
ValidationMessageTagHelperTest.cs (4)
302
tagBuilder.Attributes.
Add
("data-foo", "bar");
303
tagBuilder.Attributes.
Add
("data-hello", "world");
365
tagBuilder.Attributes.
Add
("data-foo", "bar");
366
tagBuilder.Attributes.
Add
("data-hello", "world");
ValidationSummaryTagHelperTest.cs (3)
398
tagBuilder.Attributes.
Add
("anything", "something");
399
tagBuilder.Attributes.
Add
("data-foo", "bar");
400
tagBuilder.Attributes.
Add
("data-hello", "world");
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
DefaultHtmlGenerator.cs (1)
390
tagBuilder.Attributes.
Add
("for", idString);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
AttributeDictionaryTest.cs (7)
15
attributes.
Add
("zero", "0");
16
attributes.
Add
("one", "1");
17
attributes.
Add
("two", "2");
54
attributes.
Add
("zero", "0");
55
attributes.
Add
("one", "1");
56
attributes.
Add
("two", "2");
59
Assert.Throws<InvalidOperationException>(() => attributes.
Add
("one", "15"));
Rendering\TagBuilderTest.cs (5)
31
tagBuilder.Attributes.
Add
("Hello", "World");
46
tagBuilder.Attributes.
Add
("ClaSs", "btn");
61
tagBuilder.Attributes.
Add
("ID", "something");
78
tagBuilder.Attributes.
Add
("ID", string.Empty);
153
tagBuilder.Attributes.
Add
(attributeKey, attributeValue);