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