Exemple #1
0
        public void CallDetail()
        {
            List <Call> calllist = akount.GetCallDetail().Search();

            if (calllist.Count == 0)
            {
                CreateClientANDMakeCall();
                calllist = akount.GetCallDetail().Search();
                Assert.AreNotEqual(0, calllist.Count);
            }
        }
        public void GetCallDetail()
        {
            string calldetailresponse = "[" + callresponse + "]";

            MockServer.AddGetRequest("/restcomm/2012-04-24/Accounts/" + akount.Properties.sid + "/Calls.json", calldetailresponse);
            List <Call> calllist = akount.GetCallDetail().Search();

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