Exemple #1
0
        public void ListConversationRootReportsFailure()
        {
            #region Test Setup
            List<PingList> callResult;
            string source = "+919840200527";
            testSubject = new WorkerProcess(repoInstance.Object, membershipInstance.Object, profileInstance.Object);
            #endregion

            #region Test Operations
            callResult = testSubject.ListConversationRoot(source);
            int actualCount = conversationGroups.Where<MessagePing>(passedExpression).Count<MessagePing>();
            #endregion

            #region Assert Operation Result
            Assert.IsTrue(actualCount != callResult.Count);
            #endregion
        }
Exemple #2
0
        public void ListConversationRootSucceeds()
        {
            #region Test Setup
            List<PingList> callResult;
            string source = "+919840200524";
            testSubject = new WorkerProcess(repoInstance.Object, membershipInstance.Object, profileInstance.Object);
            #endregion

            #region Test Operations
            callResult = testSubject.ListConversationRoot(source);
            #endregion

            #region Assert Operation Result
            CollectionAssert.AllItemsAreNotNull(callResult);
            #endregion
        }
Exemple #3
0
        public void CheckConversationProfileValues()
        {
            #region Test Setup
            List<PingList> callResult;
            string source = "+919840200524";
            testSubject = new WorkerProcess(repoInstance.Object, membershipInstance.Object, profileInstance.Object);
            #endregion

            #region Test Operations
            callResult = testSubject.ListConversationRoot(source);
            #endregion

            #region Assert Operation Result
            Assert.IsTrue(!String.IsNullOrEmpty(callResult.First<PingList>().DestinationPingerProfile.PingerImage));
            #endregion
        }