예제 #1
0
        private void CleanupMsgBox()
        {
            GetMessagesListRequestType selectReq = new GetMessagesListRequestType();

            selectReq.Source = GetMessagesListRequestTypeSource.INBOX;
            GetMessageListResponseType listRsp = consult.getMessagesList(selectReq);

            List <String> msgIds = new List <string>();

            foreach (GetMessageListResponseTypeMessage msg in listRsp.Message)
            {
                msgIds.Add(msg.MessageId);
            }

            MoveMessageRequestType mvReq = new MoveMessageRequestType();

            mvReq.MessageId   = msgIds.ToArray();
            mvReq.Source      = MoveMessageRequestTypeSource.INBOX;
            mvReq.Destination = MoveMessageRequestTypeDestination.BININBOX;
            Egelke.EHealth.Client.EhBox.ResponseType mvRsp = consult.moveMessage(mvReq);

            Assert.AreEqual("100", mvRsp.Status.Code);
        }
예제 #2
0
        private void CleanupMsgBox()
        {
            GetMessagesListRequestType selectReq = new GetMessagesListRequestType();
            selectReq.Source = GetMessagesListRequestTypeSource.INBOX;
            GetMessageListResponseType listRsp = consult.getMessagesList(selectReq);

            List<String> msgIds = new List<string>();
            foreach (GetMessageListResponseTypeMessage msg in listRsp.Message)
            {
                msgIds.Add(msg.MessageId);
            }

            MoveMessageRequestType mvReq = new MoveMessageRequestType();
            mvReq.MessageId = msgIds.ToArray();
            mvReq.Source = MoveMessageRequestTypeSource.INBOX;
            mvReq.Destination = MoveMessageRequestTypeDestination.BININBOX;
            Egelke.EHealth.Client.EhBox.ResponseType mvRsp = consult.moveMessage(mvReq);

            Assert.AreEqual("100", mvRsp.Status.Code);
        }