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