Exemple #1
0
        public void GetPostGreetingRecordings_NullConnectionServer_Failure()
        {
            List <PostGreetingRecording> oGreetings;
            var res = PostGreetingRecording.GetPostGreetingRecordings(null, out oGreetings, 1, 10);

            Assert.IsFalse(res.Success, "");
        }
        public void GetPostGreetingRecordings_Success()
        {
            List <PostGreetingRecording> oGreetings;
            WebCallResult res = PostGreetingRecording.GetPostGreetingRecordings(_connectionServer, out oGreetings, 1, 2);

            Assert.IsTrue(res.Success, "Failed to fetch post greeting recordings:" + res);
            Assert.IsTrue(oGreetings.Count > 0, "No post greeting recordings returned on fetch");
        }
Exemple #3
0
        public void PostGreetingRecording_Test()
        {
            _errorString = "";
            List <PostGreetingRecording> oPostGreetingRecordings;
            var res = PostGreetingRecording.GetPostGreetingRecordings(_connectionServer, out oPostGreetingRecordings);

            Assert.IsTrue(res.Success & oPostGreetingRecordings.Count > 0, "Failed to fetch postgreetingrecordings:" + res);
            Assert.IsTrue(string.IsNullOrEmpty(_errorString), _errorString);
        }
Exemple #4
0
        public void AddEditDeleteCallHandler_SetPostGreetingRecording()
        {
            List <PostGreetingRecording> oRecordings;
            var res = PostGreetingRecording.GetPostGreetingRecordings(_connectionServer, out oRecordings, 1, 1);

            Assert.IsTrue(res.Success, "Failed to fetch recordings:" + res);
            Assert.IsTrue(oRecordings.Count == 1, "Failed to fetch single recording");

            _tempHandler.ClearPendingChanges();
            _tempHandler.PostGreetingRecordingObjectId = oRecordings[0].ObjectId;
            res = _tempHandler.Update();
            Assert.IsTrue(res.Success, "Failed to update handler to postgreeting recording:" + res);
        }