예제 #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);
            }
        }
예제 #2
0
        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);
        }