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