36 instantiations of TestBinder
Microsoft.AspNetCore.SignalR.Common.Tests (36)
Internal\Protocol\CompositeTestBinder.cs (2)
24
return new
TestBinder
(_hubMessages[index - 1]).GetParameterTypes(methodName);
30
return new
TestBinder
(_hubMessages[index - 1]).GetReturnType(invocationId);
Internal\Protocol\JsonHubProtocolTests.cs (6)
52
var binder = new
TestBinder
(Array.Empty<Type>(), typeof(object));
89
var binder = new
TestBinder
(testData.Message);
103
var binder = new
TestBinder
(new[] { typeof(int) });
129
var binder = new
TestBinder
([typeof(JsonPerson)]);
162
var binder = new
TestBinder
(typeof(JsonPerson));
195
var binder = new
TestBinder
(typeof(JsonPerson));
Internal\Protocol\JsonHubProtocolTestsBase.cs (15)
144
var binder = new
TestBinder
(testData.Message);
194
var binder = new
TestBinder
(Array.Empty<Type>(), typeof(object));
205
var binder = new
TestBinder
(Array.Empty<Type>(), typeof(object));
220
var binder = new
TestBinder
(testData.Message);
234
var binder = new
TestBinder
(paramTypes: new[] { typeof(int), typeof(string) }, returnType: typeof(bool));
254
var binder = new
TestBinder
(paramTypes: new[] { typeof(int), typeof(string) }, returnType: typeof(bool));
267
var binder = new
TestBinder
(paramTypes: new[] { typeof(int[]) }, returnType: null);
278
var binder = new
TestBinder
(new[] { typeof(DateTime) });
293
var binder = new
TestBinder
(typeof(DateTime));
305
var binder = new
TestBinder
(new[] { typeof(string) });
318
var binder = new
TestBinder
(null, typeof(CustomObject));
439
var binder = new
TestBinder
(null, typeof(RawResult));
452
binder = new
TestBinder
(null, testData.ResultType);
471
var binder = new
TestBinder
();
487
var binder = new
TestBinder
(paramTypes: null, returnType: typeof(int));
Internal\Protocol\MessagePackHubProtocolTestBase.cs (5)
230
Assert.True(HubProtocol.TryParseMessage(ref data, new
TestBinder
(testData.Message), out var message));
255
Assert.True(HubProtocol.TryParseMessage(ref data, new
TestBinder
(expectedMessage), out var message));
362
var binder = new
TestBinder
(new[] { typeof(string) }, typeof(string));
395
var binder = new
TestBinder
(new[] { typeof(string) }, typeof(string));
406
var binder = new
TestBinder
(new[] { typeof(string) }, typeof(string));
Internal\Protocol\MessagePackHubProtocolTests.cs (6)
38
HubProtocol.TryParseMessage(ref bytes, new
TestBinder
(typeof(DateTime)), out var hubMessage);
67
HubProtocol.TryParseMessage(ref bytes, new
TestBinder
(typeof(DateTimeOffset)), out var hubMessage);
219
var binder = new
TestBinder
(null, typeof(RawResult));
232
binder = new
TestBinder
(null, testData.ResultType);
249
var binder = new
TestBinder
();
262
var binder = new
TestBinder
(paramTypes: null, returnType: typeof(int));
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (2)
50
var binder = new
TestBinder
(Array.Empty<Type>(), typeof(object));
88
var binder = new
TestBinder
(testData.Message);
27 references to TestBinder
Microsoft.AspNetCore.SignalR.Common.Tests (27)
Internal\Protocol\JsonHubProtocolTests.cs (5)
52
var
binder = new TestBinder(Array.Empty<Type>(), typeof(object));
89
var
binder = new TestBinder(testData.Message);
103
var
binder = new TestBinder(new[] { typeof(int) });
162
var
binder = new TestBinder(typeof(JsonPerson));
195
var
binder = new TestBinder(typeof(JsonPerson));
Internal\Protocol\JsonHubProtocolTestsBase.cs (14)
144
var
binder = new TestBinder(testData.Message);
194
var
binder = new TestBinder(Array.Empty<Type>(), typeof(object));
205
var
binder = new TestBinder(Array.Empty<Type>(), typeof(object));
220
var
binder = new TestBinder(testData.Message);
234
var
binder = new TestBinder(paramTypes: new[] { typeof(int), typeof(string) }, returnType: typeof(bool));
254
var
binder = new TestBinder(paramTypes: new[] { typeof(int), typeof(string) }, returnType: typeof(bool));
267
var
binder = new TestBinder(paramTypes: new[] { typeof(int[]) }, returnType: null);
278
var
binder = new TestBinder(new[] { typeof(DateTime) });
293
var
binder = new TestBinder(typeof(DateTime));
305
var
binder = new TestBinder(new[] { typeof(string) });
318
var
binder = new TestBinder(null, typeof(CustomObject));
439
var
binder = new TestBinder(null, typeof(RawResult));
471
var
binder = new TestBinder();
487
var
binder = new TestBinder(paramTypes: null, returnType: typeof(int));
Internal\Protocol\MessagePackHubProtocolTestBase.cs (3)
362
var
binder = new TestBinder(new[] { typeof(string) }, typeof(string));
395
var
binder = new TestBinder(new[] { typeof(string) }, typeof(string));
406
var
binder = new TestBinder(new[] { typeof(string) }, typeof(string));
Internal\Protocol\MessagePackHubProtocolTests.cs (3)
219
var
binder = new TestBinder(null, typeof(RawResult));
249
var
binder = new TestBinder();
262
var
binder = new TestBinder(paramTypes: null, returnType: typeof(int));
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (2)
50
var
binder = new TestBinder(Array.Empty<Type>(), typeof(object));
88
var
binder = new TestBinder(testData.Message);