1 write to Client
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
SimpleWithWebApplicationBuilderTests.cs (1)
27
Client
= Factory.CreateDefaultClient();
14 references to Client
Microsoft.AspNetCore.Mvc.FunctionalTests (14)
SimpleWithWebApplicationBuilderTests.cs (14)
46
var content = await
Client
.GetStringAsync("http://localhost/");
59
var response = await
Client
.GetAsync("/json");
74
var response = await
Client
.GetAsync("/ok-object");
89
var response = await
Client
.GetAsync("/accepted-object");
104
var response = await
Client
.GetAsync("/many-results?id=-1");
116
var response = await
Client
.GetAsync("/many-results?id=7");
129
var response = await
Client
.GetAsync("/greet");
222
var response = await
Client
.PostAsJsonAsync("accepts-default", new { name = "Test" });
237
var response = await
Client
.SendAsync(request);
252
var response = await
Client
.SendAsync(request);
269
Client
.DefaultRequestHeaders.Add("Cookie", new CookieHeaderValue(antiforgeryOptions.Value.Cookie.Name, tokens.CookieToken).ToString());
270
Client
.DefaultRequestHeaders.Add(tokens.HeaderName, tokens.RequestToken);
273
var response = await
Client
.PostAsync("/fileupload", content);
289
var response = await
Client
.PostAsync("/fileupload", content);