public void WithCredentialsRegistersGivenCredentials()
        {
            var connectionBuilder = new HubConnectionBuilder();
            var credentials       = Mock.Of <ICredentials>();

            connectionBuilder.WithCredentials(credentials);
            Assert.Same(credentials, connectionBuilder.GetCredentials());
        }