コード例 #1
0
        public void GetPostGreetingRecording_EmptyObjectIdAndName_Failure()
        {
            PostGreetingRecording oGreeting;
            var res = PostGreetingRecording.GetPostGreetingRecording(out oGreeting, _mockServer);

            Assert.IsFalse(res.Success, "");
        }
コード例 #2
0
        public void GetPostGreetingRecording_NullconnectionServer_Failure()
        {
            PostGreetingRecording oGreeting;
            var res = PostGreetingRecording.GetPostGreetingRecording(out oGreeting, null, "objectID");

            Assert.IsFalse(res.Success, "");
        }
コード例 #3
0
        public void GetPostGreetingRecording_InvalidObjectId_Failure()
        {
            PostGreetingRecording oGreeting;
            var res = PostGreetingRecording.GetPostGreetingRecording(out oGreeting, _connectionServer, "objectID");

            Assert.IsFalse(res.Success, "Calling GetPostGreetingRecording with invalid ObjectId did not fail");
        }
コード例 #4
0
        public void GetPostGreetingRecording_MissingObjectIdAndName_Failure()
        {
            PostGreetingRecording oGreeting;
            var res = PostGreetingRecording.GetPostGreetingRecording(out oGreeting, _connectionServer);

            Assert.IsFalse(res.Success, "Calling GetPostGreetingRecording with missing ObjectId and nane did not fail");
        }
コード例 #5
0
        public void GetPostGreetingRecordings_ConstructorWithObjectId_Success()
        {
            PostGreetingRecording oGreeting;
            var res = PostGreetingRecording.GetPostGreetingRecording(out oGreeting, _connectionServer,
                                                                     _tempGreeting.ObjectId);

            Assert.IsTrue(res.Success, "Failed to fetch post greeting recording by valid objectId:" + res);
        }
コード例 #6
0
        public void GetPostGreetingRecordings_ConstructorWithDisplayName_Success()
        {
            PostGreetingRecording oGreeting;

            var res = PostGreetingRecording.GetPostGreetingRecording(out oGreeting, _connectionServer, "", _tempGreeting.DisplayName);

            Assert.IsTrue(res.Success, "Failed to fetch post greeting recording by valid name:" + res);

            Console.WriteLine(oGreeting);
            Console.WriteLine(oGreeting.DumpAllProps());
        }