Пример #1
0
        public void ApplicationList()
        {
            //	Application app= akount.CreateApplication ("DemoApp", "2012-04-24");
            List <Application> applist = akount.GetApplicationList();

            if (applist == null)
            {
                Application app = akount.CreateApplication("DemoApp", "2012-04-24");
                applist = akount.GetApplicationList();
                Assert.IsNotNull(applist);
                app.Delete();
            }
        }
Пример #2
0
        public void applist()
        {
            string applistresponse = "[" + appresponse + "]";

            MockServer.AddGetRequest("/restcomm/2012-04-24/Accounts/" + akount.Properties.sid + "/Applications.json", applistresponse);
            MockServer.AddGetRequest("/restcomm/2012-04-24/Accounts/" + akount.Properties.sid + "/Applications" + "/dummyapp.json", appresponse);
            List <Application> a = akount.GetApplicationList();

            Assert.AreEqual(1, a.Count);
        }