public void GetHubNameTest()
        {
            var configuration = new ConfigurationBuilder().AddInMemoryCollection().Build();

            configuration["AzureSignalRConnectionString:serviceUri"] = "https://abc.com";
            using var serviceManagerStore = new ServiceManagerStore(configuration, NullLoggerFactory.Instance, SingletonAzureComponentFactory.Instance, new EndpointRouterDecorator());
            var myHub = new TestStronglyTypedHub(serviceManagerStore);

            Assert.Equal("TestStronglyTypedHub", myHub.HubName);
        }
        public async Task NegotiateAsync()
        {
            var serviceManager = new ServiceManagerBuilder().WithOptions(o => o.ConnectionString = FakeEndpointUtils.GetFakeConnectionString(1).Single()).BuildServiceManager();
            var hubContext     = await serviceManager.CreateHubContextAsync <IChatClient>("hubName", default);

            var myHub          = new TestStronglyTypedHub(hubContext);
            var connectionInfo = await myHub.Negotiate("user");

            Assert.NotNull(connectionInfo);
        }
        public void TestWithoutSignalRConnectionAttribute()
        {
            var configuration = new ConfigurationBuilder().AddInMemoryCollection().Build();

            using var serviceManagerStore = new ServiceManagerStore(configuration, NullLoggerFactory.Instance, SingletonAzureComponentFactory.Instance, new EndpointRouterDecorator());

            Assert.Throws <InvalidOperationException>(() => new TestStronglyTypedHub(serviceManagerStore));

            configuration["AzureSignalRConnectionString:serviceUri"] = "https://abc.com";
            var myHub = new TestStronglyTypedHub(serviceManagerStore);

            Assert.NotNull(serviceManagerStore.GetByConfigurationKey("AzureSignalRConnectionString"));
        }