public void Instantiate_OfficialConnectionString_CorrectUsername()
        {
            var factory       = new OfficialCosmosDbClientFactory();
            var session       = factory.Instantiate(OfficialConnectionString);
            var gremlinClient = session as GremlinClient;

            Assert.That(gremlinClient.Username, Is.EqualTo("/dbs/myDatabase/colls/myCollection"));
        }
        public void Instantiate_OfficialConnectionString_CorrectPassword()
        {
            var factory       = new OfficialCosmosDbClientFactory();
            var session       = factory.Instantiate(OfficialConnectionString);
            var gremlinClient = session as GremlinClient;

            Assert.That(gremlinClient.Password, Is.EqualTo("xLNOQPTaBpDrCxMoUTFVavrtnjkpSw5qaVbbxSazCtKNFopFjAZE9aeLKAdCuiQSqTUaRhffFGrJKJA89GTsdg=="));
        }
        public void Instantiate_OfficialConnectionString_CorrectHostName()
        {
            var factory       = new OfficialCosmosDbClientFactory();
            var session       = factory.Instantiate(OfficialConnectionString);
            var gremlinClient = session as GremlinClient;

            Assert.That(gremlinClient.Hostname, Is.EqualTo("my-endpoint.documents.azure.com"));
        }
        public void Instantiate_OfficialConnectionString_CorrectEnableSsl()
        {
            var factory       = new OfficialCosmosDbClientFactory();
            var session       = factory.Instantiate(OfficialConnectionString);
            var gremlinClient = session as GremlinClient;

            Assert.That(gremlinClient.EnableSsl, Is.EqualTo(true));
        }
        public void Instantiate_OfficialConnectionString_GremlinClient()
        {
            var factory = new OfficialCosmosDbClientFactory();
            var session = factory.Instantiate(OfficialConnectionString);

            Assert.That(session, Is.Not.Null);
            Assert.That(session, Is.TypeOf <GremlinClient>());
        }