20 references to ReceivedRequests
Microsoft.AspNetCore.SignalR.Client.Tests (20)
HttpConnectionTests.Negotiate.cs (19)
203
Assert.Equal("http://fakeuri.org/negotiate?negotiateVersion=1", testHttpHandler.
ReceivedRequests
[0].RequestUri.ToString());
204
Assert.Equal("http://fakeuri.org/?id=different-id", testHttpHandler.
ReceivedRequests
[1].RequestUri.ToString());
243
Assert.Equal("http://fakeuri.org/negotiate?negotiateVersion=1", testHttpHandler.
ReceivedRequests
[0].RequestUri.ToString());
244
Assert.Equal("http://fakeuri.org/?id=0rge0d00-0040-0030-0r00-000q00r00e00", testHttpHandler.
ReceivedRequests
[1].RequestUri.ToString());
300
Assert.Equal("http://fakeuri.org/negotiate?negotiateVersion=1", testHttpHandler.
ReceivedRequests
[0].RequestUri.ToString());
301
Assert.Equal("https://another.domain.url/chat/negotiate?negotiateVersion=1", testHttpHandler.
ReceivedRequests
[1].RequestUri.ToString());
302
Assert.Equal("https://another.domain.url/chat?id=0rge0d00-0040-0030-0r00-000q00r00e00", testHttpHandler.
ReceivedRequests
[2].RequestUri.ToString());
303
Assert.Equal("https://another.domain.url/chat?id=0rge0d00-0040-0030-0r00-000q00r00e00", testHttpHandler.
ReceivedRequests
[3].RequestUri.ToString());
304
Assert.Equal(5, testHttpHandler.
ReceivedRequests
.Count);
406
Assert.Equal("http://fakeuri.org/negotiate?negotiateVersion=1", testHttpHandler.
ReceivedRequests
[0].RequestUri.ToString());
407
Assert.Equal("https://another.domain.url/chat/negotiate?negotiateVersion=1", testHttpHandler.
ReceivedRequests
[1].RequestUri.ToString());
408
Assert.Equal("https://another.domain.url/chat?id=0rge0d00-0040-0030-0r00-000q00r00e00", testHttpHandler.
ReceivedRequests
[2].RequestUri.ToString());
409
Assert.Equal("https://another.domain.url/chat?id=0rge0d00-0040-0030-0r00-000q00r00e00", testHttpHandler.
ReceivedRequests
[3].RequestUri.ToString());
411
Assert.Equal(5, testHttpHandler.
ReceivedRequests
.Count);
471
Assert.Equal("http://fakeuri.org/negotiate?negotiateVersion=1", testHttpHandler.
ReceivedRequests
[0].RequestUri.ToString());
472
Assert.Equal("https://another.domain.url/chat/negotiate?negotiateVersion=1", testHttpHandler.
ReceivedRequests
[1].RequestUri.ToString());
473
Assert.Equal("https://another.domain.url/chat?negotiateVersion=1&id=0rge0d00-0040-0030-0r00-000q00r00e00", testHttpHandler.
ReceivedRequests
[2].RequestUri.ToString());
474
Assert.Equal("https://another.domain.url/chat?negotiateVersion=1&id=0rge0d00-0040-0030-0r00-000q00r00e00", testHttpHandler.
ReceivedRequests
[3].RequestUri.ToString());
475
Assert.Equal(5, testHttpHandler.
ReceivedRequests
.Count);
LongPollingTransportTests.cs (1)
692
var deleteRequest = handler.
ReceivedRequests
.SingleOrDefault(r => r.Method == HttpMethod.Delete);