18 references to WriteAsJsonAsync
Microsoft.AspNetCore.Authentication.Test (2)
JwtBearerTests.cs (1)
1231await context.Response.WriteAsJsonAsync(
JwtBearerTests_Handler.cs (1)
1298await context.Response.WriteAsJsonAsync(
Microsoft.AspNetCore.Components.Server (1)
CircuitJavaScriptInitializationMiddleware.cs (1)
23await context.Response.WriteAsJsonAsync(_initializers);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
HttpResponseJsonExtensionsTests.cs (8)
29await context.Response.WriteAsJsonAsync(1); 48await context.Response.WriteAsJsonAsync<Uri?>(value: null); 100await context.Response.WriteAsJsonAsync(1); 132var writeTask = context.Response.WriteAsJsonAsync(1, cts.Token); 154await context.Response.WriteAsJsonAsync(value); 268await context.Response.WriteAsJsonAsync(AsyncEnumerable()); 321await context.Response.WriteAsJsonAsync(AsyncEnumerable()); 423await Assert.ThrowsAnyAsync<OperationCanceledException>(() => context.Response.WriteAsJsonAsync(AsyncEnumerable(), cts.Token));
ProblemDetailsServiceTest.cs (1)
165=> new(context.HttpContext.Response.WriteAsJsonAsync(_content));
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
245return context.HttpContext.Response.WriteAsJsonAsync(context.Object);
Microsoft.AspNetCore.Routing.FunctionalTests (4)
MinimalFormTests.cs (4)
94await context.Response.WriteAsJsonAsync(todo); 356await context.Response.WriteAsJsonAsync(todo); 370await context.Response.WriteAsJsonAsync(todo); 384await context.Response.WriteAsJsonAsync(todo);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
HttpsTests.cs (1)
158return httpContext.Response.WriteAsJsonAsync(tlsFeature);