22 references to Add
Microsoft.AspNetCore.Http.Extensions.Tests (17)
RequestDelegateFactoryTests.cs (2)
2055
multipartFormData.
Add
(new StringContent("hello"), "message");
2056
multipartFormData.
Add
(new StringContent("foo"), "name");
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (3)
520
multipartFormData.
Add
(new StringContent("hello"), "message");
521
multipartFormData.
Add
(new StringContent("foo"), "name");
821
form.
Add
(new StringContent("foo"), "name");
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (12)
57
content.
Add
(new StringContent("1"), "Id");
58
content.
Add
(new StringContent("Write tests"), "Name");
59
content.
Add
(new StringContent("true"), "IsComplete");
126
content.
Add
(new StringContent("true"), "[foo]");
127
content.
Add
(new StringContent("false"), "[bar]");
128
content.
Add
(new StringContent("true"), "[baz]");
163
content.
Add
(new StringContent("not-a-bool"), "[foo]");
164
content.
Add
(new StringContent("1"), "[bar]");
165
content.
Add
(new StringContent("2"), "[baz]");
235
content.
Add
(new StringContent("1"), "[0]");
236
content.
Add
(new StringContent("3"), "[1]");
237
content.
Add
(new StringContent("5"), "[2]");
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
FormFileUploadTest.cs (5)
35
content.
Add
(new StringContent("John"), "Name");
36
content.
Add
(new StringContent("23"), "Age");
59
content.
Add
(new StringContent("Phone"), "Name");
60
content.
Add
(new StringContent("camera"), "Specs[0].Key");
63
content.
Add
(new StringContent("battery"), "Specs[1].Key");