public void GetGreetingStreamFile_InvalidLanguageCode_Failure()
        {
            PostGreetingRecordingStreamFile oGreetingStream;
            var res = PostGreetingRecordingStreamFile.GetGreetingStreamFile(_connectionServer, _tempGreeting.ObjectId, 9999, out oGreetingStream);

            Assert.IsFalse(res.Success, "calling GetGreetingStreamFile with invalid language code did not fail");
        }
예제 #2
0
        public void GetGreetingStreamFiles_NullConnectionServer_Failure()
        {
            List <PostGreetingRecordingStreamFile> oGreetingStreams;
            var res = PostGreetingRecordingStreamFile.GetGreetingStreamFiles(null, "objectid", out oGreetingStreams);

            Assert.IsFalse(res.Success, "");
        }
        public void GetGreetingStreamFile_InvalidObjectId_Failure()
        {
            PostGreetingRecordingStreamFile oGreetingStream;
            var res = PostGreetingRecordingStreamFile.GetGreetingStreamFile(_connectionServer, "objectid", 1033, out oGreetingStream);

            Assert.IsFalse(res.Success, "calling GetGreetingStreamFile with invalid ObjectId did not fail");
        }
예제 #4
0
        public void GetGreetingStreamFile_NullConnectionServer_Failure()
        {
            PostGreetingRecordingStreamFile oGreetingStream;
            WebCallResult res = PostGreetingRecordingStreamFile.GetGreetingStreamFile(null, "objectid", 1033, out oGreetingStream);

            Assert.IsFalse(res.Success, "");
        }
예제 #5
0
        public void GetGreetingStreamFile_EmptyObjectId_Failure()
        {
            PostGreetingRecordingStreamFile oGreetingStream;
            var res = PostGreetingRecordingStreamFile.GetGreetingStreamFile(_mockServer, "", 1033, out oGreetingStream);

            Assert.IsFalse(res.Success, "");
        }
예제 #6
0
        public void GetGreetingStreamFiles_EmptyObjectId_Failure()
        {
            List <PostGreetingRecordingStreamFile> oGreetingStreams;

            var res = PostGreetingRecordingStreamFile.GetGreetingStreamFiles(_mockServer, "", out oGreetingStreams);

            Assert.IsFalse(res.Success, "");
        }
        public void GetGreetingStreamFiles_InvalidObjectId_Failure()
        {
            List <PostGreetingRecordingStreamFile> oGreetingStreams;
            var res = PostGreetingRecordingStreamFile.GetGreetingStreamFiles(_connectionServer, "objectId", out oGreetingStreams);

            Assert.IsTrue(res.Success, "calling GetGreetingStreamFiles with invalid ObjectId should not fail:" + res);
            Assert.IsTrue(oGreetingStreams.Count == 0, "Calling GetGreetingStreamFiles with invalid ObjectId should reutrn an empty list");
        }
예제 #8
0
        public void SetGreetingWavFile_EmptySourcePath_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_mockServer, "objectid", 1033, "", true);

            Assert.IsFalse(res.Success, "");
        }
        public void GetGreetingWavFile_InvalidTargetFolder_Failure()
        {
            var res = PostGreetingRecordingStreamFile.GetGreetingWavFile(_connectionServer, "e:\\bogus\\bogus.xyz", "streamfilename", 1033);

            Assert.IsFalse(res.Success, "Calling GetGreetingWavFile with invalid target folder did not fail");
        }
예제 #10
0
        public void SetGreetingWavFile_NullConnectionServer_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(null, "objectid", 1033, "c:\\temp.wav", true);

            Assert.IsFalse(res.Success, "");
        }
예제 #11
0
        public void SetGreetingWavFile_EmptyObjectId_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_mockServer, "", 1033, "c:\\temp.wav", true);

            Assert.IsFalse(res.Success, "");
        }
예제 #12
0
        public void GetGreetingWavFile_InvalidTargetFolderWithLanguageCode_Failure()
        {
            var res = PostGreetingRecordingStreamFile.GetGreetingWavFile(_mockServer, "e:\\bogus\\bogus.xyz", "bogus", 1033);

            Assert.IsFalse(res.Success, "");
        }
예제 #13
0
        public void GetGreetingWavFile_EmptyStreamFileNameWithLanguageCode_Failure()
        {
            var res = PostGreetingRecordingStreamFile.GetGreetingWavFile(_mockServer, "bogus.xyz", "", 1033);

            Assert.IsFalse(res.Success, "");
        }
예제 #14
0
        public void GetGreetingWavFile_NullConnectionServerWithLanguageCode_Failure()
        {
            var res = PostGreetingRecordingStreamFile.GetGreetingWavFile(null, "c:\\temp.wav", "streamfilename", 1033);

            Assert.IsFalse(res.Success, "");
        }
        public void GetGreetingWavFile_InvalidStreamName_Failure()
        {
            var res = PostGreetingRecordingStreamFile.GetGreetingWavFile(_connectionServer, "c:\\temp.wav", "invalidstreamname");

            Assert.IsFalse(res.Success, "calling GetGreetingWavFile with invalid streamname did not fail");
        }
        public void SetGreetingWavFile_InvalidObjectId_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_connectionServer, "objectid", 1033, "c:\\temp.wav", true);

            Assert.IsFalse(res.Success, "calling SetGreetingWavFile with invalid ObjectId did not fail");
        }
        public void SetGreetingWavFile_InvalidWavPath_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_connectionServer, _tempGreeting.ObjectId, 1033, "bogus.wav", true);

            Assert.IsFalse(res.Success, "calling SetGreetingWavFile with invalid WAV path did not fail");
        }
        public void SetGreetingWavFile_InvalidLanguageCode_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_connectionServer, _tempGreeting.ObjectId, 9999, "Dummy.wav", true);

            Assert.IsFalse(res.Success, "calling SetGreetingWavFile with invalid language code did not fail");
        }