public void GenerateDirectTokenTest()
        {
            // arrange
            var subscriberId = "a0629978-28d8-4fd4-b862-f67e9b6dfd8f";
            var stream = "test";
            var tambur = new Tambur("30af96de47e3c58329045ff136a4a3ea", "ws-bot-1", "wsbot", "_fixtureApiHost");

            // act
            var token = tambur.GenerateDirectToken(stream, "test_user", subscriberId);

            // assert
            Assert.IsTrue("2403374744295f5d22e3f999d4eb85b3f689c6b2".Equals(token));
        }
        public void GeneratePresenceTokenTest()
        {
            // arrange
            var subscriberId = "a0629978-28d8-4fd4-b862-f67e9b6dfd8f";
            var stream = "test";
            var tambur = new Tambur("30af96de47e3c58329045ff136a4a3ea", "ws-bot-1", "wsbot", "_fixtureApiHost");

            // act
            var token = tambur.GeneratePresenceToken(stream, "test_user" , subscriberId);

            // assert
            Assert.IsTrue("dcadf9659116ebbe024a4cd5ae12bde48d95408e".Equals(token));
        }
        public void GenerateAuthTokenTest()
        {
            // arrange
            var subscriberId = "a0629978-28d8-4fd4-b862-f67e9b6dfd8f";
            var stream = "test";
            var tambur = new Tambur("30af96de47e3c58329045ff136a4a3ea", "ws-bot-1", "wsbot", "_fixtureApiHost");

            // act
            var token = tambur.GenerateAuthToken(stream, subscriberId);

            // assert
            Assert.IsTrue("2f25ad1ce5afab906cc582b6254a912590c60f73".Equals(token));
        }
        public void InitFixture()
        {
            var credentials = new WebClient().DownloadString("http://wsbot.tambur.io/credentials");

            var credentialDict = JObject.Parse(credentials);

            _fixtureApiHost = "api.tambur.io";

            _fixtureApiKey = (string)credentialDict["api_key"];
            _fixtureAppId = (string)credentialDict["app_id"];
            _fixtureSecret = (string)credentialDict["secret"];

            _tambur = new Tambur(_fixtureApiKey, _fixtureAppId, _fixtureSecret, _fixtureApiHost);
        }