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