Ejemplo n.º 1
0
        public void Request_API_Unauthorized()
        {
            Tapd tapd = new Tapd("null", "null");

            var response = tapd.Request <string>("quickstart/testauth");

            Assert.AreEqual(response.status, TAPDHttpStatus.Unauthorized);
        }
Ejemplo n.º 2
0
        public void Request_API_Authorized()
        {
            Tapd tapd = new Tapd(TAPDTestAuthorization.API_USER, TAPDTestAuthorization.API_PASSWORD);

            var response = tapd.Request <object>("quickstart/testauth");

            Assert.AreEqual(response.status, TAPDHttpStatus.Succeed);
        }