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

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

            Assert.IsFalse(res.Success, "");
        }
        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");
        }
        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");
        }
        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);
        }
        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());
        }