diff --git a/aspnetcore/grpc/test-services.md b/aspnetcore/grpc/test-services.md index 1b2172c6de..486cd73edb 100644 --- a/aspnetcore/grpc/test-services.md +++ b/aspnetcore/grpc/test-services.md @@ -62,7 +62,7 @@ To configure a `HttpContext` during test setup, create a new instance and add it var httpContext = new DefaultHttpContext(); var serverCallContext = TestServerCallContext.Create(); -serviceCallContext.UserState["__HttpContext"] = httpContext; +serverCallContext.UserState["__HttpContext"] = httpContext; ``` Execute service methods with this call context to use the configured `HttpContext` instance.