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