public void CreateSubAount() { SubAccount a = akount.CreateSubAccount("Test", "*****@*****.**", "Demo@1234"); Assert.IsNotEmpty(a.Properties.Sid); a.CloseSubAccount(); }
public void CreateSubAccount() { var paradictionary = new Dictionary <string, string>(); paradictionary.Add("FriendlyName", "password"); paradictionary.Add("EmailAddress", "b"); paradictionary.Add("Password", "c"); MockServer.AddPostRequest("/restcomm/2012-04-24/Accounts.json/", paradictionary, loginresponse); SubAccount a = akount.CreateSubAccount("password", "b", "c"); Assert.IsNotNull(a.Properties.friendly_name); }