Implemented interface member:
14 references to Add
Microsoft.AspNetCore.Mvc.Razor.Test (2)
DefaultTagHelperFactoryTest.cs (1)
37
viewContext.ViewData.
Add
("TestData", viewDataValue);
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
29
viewContext.ViewData.
Add
("TestData", viewDataValue);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
Rendering\HtmlHelperHiddenTest.cs (3)
409
helper.ViewData.
Add
("Property1", "vdd-without-prefix");
410
helper.ViewData.
Add
("MyPrefix.Property1", "vdd-with-prefix");
411
helper.ViewData.
Add
("MyPrefix$Property1", "vdd-with-iddotreplacement");
ViewDataDictionaryTest.cs (9)
518
viewData.
Add
("Foo", "Bar");
532
viewData.
Add
("Foo", "Blah");
546
viewData.
Add
("Foo.Bar", "Baz");
560
viewData.
Add
("Foo", new { Bar = "Baz" });
574
viewData.
Add
("Foo.Bar", new { Baz = "Quux" });
588
viewData.
Add
("Foo.Bar", new { Baz = new { Blah = "Quux" } });
673
viewData.
Add
("Foo", new Dictionary<string, object> { { "Bar", "Baz" } });
687
viewData.
Add
("Foo", new Dictionary<string, object> { { "NotBar", "Baz" } });
708
viewData.
Add
("Foo", value);