88 references to TestHelpers
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (88)
ConverterTests\JsonConverterReadTests.cs (2)
651descriptorRegistry.RegisterFileDescriptor(TestHelpers.GetMessageDescriptor(typeof(TValue)).File); 679descriptorRegistry.RegisterFileDescriptor(TestHelpers.GetMessageDescriptor(typeof(TValue)).File);
ConverterTests\JsonConverterWriteTests.cs (1)
558descriptorRegistry.RegisterFileDescriptor(TestHelpers.GetMessageDescriptor(type).File);
ServerStreamingServerCallHandlerTests.cs (13)
54var descriptorInfo = TestHelpers.CreateDescriptorInfo(routeParameterDescriptors: routeParameterDescriptors); 56var httpContext = TestHelpers.CreateHttpContext(bodyStream: pipe.Writer.AsStream()); 101var descriptorInfo = TestHelpers.CreateDescriptorInfo(routeParameterDescriptors: routeParameterDescriptors); 103var httpContext = TestHelpers.CreateHttpContext(bodyStream: pipe.Writer.AsStream()); 143var descriptorInfo = TestHelpers.CreateDescriptorInfo(routeParameterDescriptors: routeParameterDescriptors); 145var httpContext = TestHelpers.CreateHttpContext(bodyStream: pipe.Writer.AsStream()); 183var descriptorInfo = TestHelpers.CreateDescriptorInfo(routeParameterDescriptors: routeParameterDescriptors); 186var httpContext = TestHelpers.CreateHttpContext(bodyStream: pipe.Writer.AsStream()); 232var descriptorInfo = TestHelpers.CreateDescriptorInfo(routeParameterDescriptors: routeParameterDescriptors); 237var httpContext = TestHelpers.CreateHttpContext(bodyStream: pipe.Writer.AsStream()); 347descriptorRegistry.RegisterFileDescriptor(TestHelpers.GetMessageDescriptor(typeof(TRequest)).File); 348descriptorRegistry.RegisterFileDescriptor(TestHelpers.GetMessageDescriptor(typeof(TResponse)).File); 355descriptorInfo ?? TestHelpers.CreateDescriptorInfo(),
UnaryServerCallHandlerTests.cs (72)
63var descriptorInfo = TestHelpers.CreateDescriptorInfo(routeParameterDescriptors: routeParameterDescriptors); 65var httpContext = TestHelpers.CreateHttpContext(); 102var descriptorInfo = TestHelpers.CreateDescriptorInfo( 108var httpContext = TestHelpers.CreateHttpContext(); 136var descriptorInfo = TestHelpers.CreateDescriptorInfo( 142var httpContext = TestHelpers.CreateHttpContext(); 169descriptorInfo: TestHelpers.CreateDescriptorInfo(responseBodyDescriptor: HelloReply.Descriptor.FindFieldByNumber(HelloReply.ValuesFieldNumber))); 170var httpContext = TestHelpers.CreateHttpContext(); 199descriptorInfo: TestHelpers.CreateDescriptorInfo(bodyDescriptor: HelloRequest.Descriptor)); 200var httpContext = TestHelpers.CreateHttpContext(); 232var descriptorInfo = TestHelpers.CreateDescriptorInfo( 238var httpContext = TestHelpers.CreateHttpContext(); 272var descriptorInfo = TestHelpers.CreateDescriptorInfo( 279var httpContext = TestHelpers.CreateHttpContext(); 322var descriptorInfo = TestHelpers.CreateDescriptorInfo( 329var httpContext = TestHelpers.CreateHttpContext(); 372var descriptorInfo = TestHelpers.CreateDescriptorInfo( 379var httpContext = TestHelpers.CreateHttpContext(); 422var descriptorInfo = TestHelpers.CreateDescriptorInfo( 429var httpContext = TestHelpers.CreateHttpContext(); 472var descriptorInfo = TestHelpers.CreateDescriptorInfo( 479var httpContext = TestHelpers.CreateHttpContext(); 523var httpContext = TestHelpers.CreateHttpContext(); 551var httpContext = TestHelpers.CreateHttpContext(); 580descriptorInfo: TestHelpers.CreateDescriptorInfo()); 582var httpContext = TestHelpers.CreateHttpContext(); 616descriptorInfo: TestHelpers.CreateDescriptorInfo()); 618var httpContext = TestHelpers.CreateHttpContext(); 649var httpContext = TestHelpers.CreateHttpContext(); 675var httpContext = TestHelpers.CreateHttpContext(); 702var httpContext = TestHelpers.CreateHttpContext(); 737descriptorInfo: TestHelpers.CreateDescriptorInfo(bodyDescriptor: HelloRequest.Descriptor)); 738var httpContext = TestHelpers.CreateHttpContext(); 769var descriptorInfo = TestHelpers.CreateDescriptorInfo( 776var httpContext = TestHelpers.CreateHttpContext(); 804descriptorInfo: TestHelpers.CreateDescriptorInfo(bodyDescriptor: HelloRequest.Descriptor)); 805var httpContext = TestHelpers.CreateHttpContext(); 831var httpContext = TestHelpers.CreateHttpContext(); 856var httpContext = TestHelpers.CreateHttpContext(); 923var httpContext = TestHelpers.CreateHttpContext(); 1001var httpContext = TestHelpers.CreateHttpContext(); 1043var httpContext = TestHelpers.CreateHttpContext(); 1073var httpContext = TestHelpers.CreateHttpContext(); 1102var httpContext = TestHelpers.CreateHttpContext(); 1136descriptorInfo: TestHelpers.CreateDescriptorInfo(bodyDescriptor: HttpBody.Descriptor)); 1139var httpContext = TestHelpers.CreateHttpContext(); 1181descriptorInfo: TestHelpers.CreateDescriptorInfo(bodyDescriptor: HttpBody.Descriptor)); 1183var httpContext = TestHelpers.CreateHttpContext(); 1224descriptorInfo: TestHelpers.CreateDescriptorInfo(bodyDescriptor: Int32Value.Descriptor)); 1226var httpContext = TestHelpers.CreateHttpContext(); 1254var descriptorInfo = TestHelpers.CreateDescriptorInfo( 1261var httpContext = TestHelpers.CreateHttpContext(); 1290descriptorInfo: TestHelpers.CreateDescriptorInfo(bodyDescriptor: HttpBody.Descriptor)); 1293var httpContext = TestHelpers.CreateHttpContext(); 1314var descriptorInfo = TestHelpers.CreateDescriptorInfo( 1323var httpContext = TestHelpers.CreateHttpContext(); 1357var httpContext = TestHelpers.CreateHttpContext(); 1384var httpContext = TestHelpers.CreateHttpContext(); 1409var httpContext = TestHelpers.CreateHttpContext(); 1444var httpContext = TestHelpers.CreateHttpContext(); 1465var httpContext = TestHelpers.CreateHttpContext(); 1491var httpContext = TestHelpers.CreateHttpContext(); 1519var httpContext = TestHelpers.CreateHttpContext(); 1643var httpContext = TestHelpers.CreateHttpContext(); 1663var httpContext = TestHelpers.CreateHttpContext(); 1712descriptorInfo: TestHelpers.CreateDescriptorInfo(bodyDescriptor: HelloRequest.Descriptor), 1717var httpContext = TestHelpers.CreateHttpContext(); 1758var httpContext = TestHelpers.CreateHttpContext(); 1792var httpContext = TestHelpers.CreateHttpContext(); 1848descriptorRegistry.RegisterFileDescriptor(TestHelpers.GetMessageDescriptor(typeof(TRequest)).File); 1849descriptorRegistry.RegisterFileDescriptor(TestHelpers.GetMessageDescriptor(typeof(TResponse)).File); 1859descriptorInfo ?? TestHelpers.CreateDescriptorInfo(),