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); }
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); }