diff --git a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs index debddd6198..3717b91f21 100644 --- a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs +++ b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/HubConnectionTests.cs @@ -239,7 +239,7 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests } } - public static string[] HubPaths = new[] { "/default", "/dynamic" }; + public static string[] HubPaths = new[] { "/default", "/dynamic", "/hubT" }; public static IEnumerable HubProtocols => new IHubProtocol[] diff --git a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Hubs.cs b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Hubs.cs index c95608b0cf..b35ae46d7e 100644 --- a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Hubs.cs +++ b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Hubs.cs @@ -57,4 +57,39 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests return Clients.All.Send(message); } } + + public class TestHubT : Hub + { + public string HelloWorld() + { + return "Hello World!"; + } + + public string Echo(string message) + { + return message; + } + + public async Task CallEcho(string message) + { + await Clients.Client(Context.ConnectionId).Echo(message); + } + + public IObservable Stream() + { + return new[] { "a", "b", "c" }.ToObservable(); + } + + public Task SendMessage(string message) + { + return Clients.All.Send(message); + } + } + + public interface ITestHub + { + Task Echo(string message); + Task Send(string message); + } + } diff --git a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Startup.cs b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Startup.cs index b29410f3ba..2c5b944dfe 100644 --- a/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Startup.cs +++ b/test/Microsoft.AspNetCore.SignalR.Client.FunctionalTests/Startup.cs @@ -19,6 +19,7 @@ namespace Microsoft.AspNetCore.SignalR.Client.FunctionalTests { routes.MapHub("default"); routes.MapHub("dynamic"); + routes.MapHub("hubT"); }); } }