public async Task SendLargeRequest_SuccessResponse() { // Arrage var httpClient = CreateGrpcWebClient(); var channel = GrpcChannel.ForAddress(httpClient.BaseAddress !, new GrpcChannelOptions { HttpClient = httpClient, LoggerFactory = LoggerFactory }); var client = new IssueService.IssueServiceClient(channel); var request = new GetLibraryRequest(); request.UserId = "admin"; request.SearchTerm = string.Empty; for (var i = 0; i < 4096; i++) { request.Carriers.Add(i.ToString()); } try { // Act var response = await client.GetLibraryAsync(request).ResponseAsync.DefaultTimeout(); // Assert Assert.AreEqual("admin", response.UserId); } catch (Exception ex) { throw new InvalidOperationException($"Error for {GrpcTestMode}-{EndpointName}", ex); } }
public async Task SendLargeRequest_SuccessResponse() { // Arrage var httpClient = CreateGrpcWebClient(); var channel = GrpcChannel.ForAddress(httpClient.BaseAddress, new GrpcChannelOptions { HttpClient = httpClient, LoggerFactory = LoggerFactory }); var client = new IssueService.IssueServiceClient(channel); var request = new GetLibraryRequest(); request.UserId = "admin"; request.SearchTerm = string.Empty; for (var i = 0; i < 4096; i++) { request.Carriers.Add(i.ToString()); } // Act var response = await client.GetLibraryAsync(request); // Assert Assert.AreEqual("admin", response.UserId); }