public void CreateApplication() { Application app = akount.CreateApplication("DemoApp", "2012-04-24"); Assert.IsNotNullOrEmpty(app.Properties.Sid); app.Delete(); }
public void makeapp() { var paradictionary = new Dictionary <string, string>(); paradictionary.Add("FriendlyName", "appname"); MockServer.AddPostRequest("/restcomm/2012-04-24/Accounts/" + akount.Properties.sid + "/Applications.json", paradictionary, appresponse); MockServer.AddGetRequest("/restcomm/2012-04-24/Accounts/" + akount.Properties.sid + "/Applications" + "/dummyapp.json", appresponse); Application a = akount.CreateApplication("appname"); Assert.AreEqual("dummyapp", a.Properties.sid); }