public void Request_API_Unauthorized() { Tapd tapd = new Tapd("null", "null"); var response = tapd.Request <string>("quickstart/testauth"); Assert.AreEqual(response.status, TAPDHttpStatus.Unauthorized); }
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); }