コード例 #1
0
        public void ClearMessageWithConfigViaConfig()
        {
            String msg = "The eH-I library now support publication and consultations of the ehBox";

            publish = new ehBoxPublicationPortTypeClient("Publish");
            consult = new ehBoxConsultationPortTypeClient("Consult");

            var nurse = new PublicationMessageTypeDestinationContext();

            nurse.Id      = "83121034221";
            nurse.Type    = "INSS";
            nurse.Quality = "NURSE";

            var self = new PublicationMessageTypeDestinationContext();

            self.Id      = "0820563481";
            self.Type    = "CBE";
            self.Quality = "INSTITUTION";

            CleanupMsgBox();
            String msgId  = SendAndCheck(msg, ContentInfoTypeContentType.DOCUMENT, nurse, self);
            String rspMsg = ReceiveMessage(msgId);

            Assert.AreEqual(msg, rspMsg);
        }
コード例 #2
0
ファイル: EhBoxExamples.cs プロジェクト: svn2github/ehi
        public void ClearMessageWithConfigViaConfig()
        {
            String msg = "The eH-I library now support publication and consultations of the ehBox";
            publish = new ehBoxPublicationPortTypeClient("Publish");
            consult = new ehBoxConsultationPortTypeClient("Consult");

            var nurse = new PublicationMessageTypeDestinationContext();
            nurse.Id = "83121034221";
            nurse.Type = "INSS";
            nurse.Quality = "NURSE";

            var self = new PublicationMessageTypeDestinationContext();
            self.Id = "0820563481";
            self.Type = "CBE";
            self.Quality = "INSTITUTION";

            CleanupMsgBox();
            String msgId = SendAndCheck(msg, ContentInfoTypeContentType.DOCUMENT, nurse, self);
            String rspMsg = ReceiveMessage(msgId);

            Assert.AreEqual(msg, rspMsg);
        }
コード例 #3
0
ファイル: NewsPostMaster.cs プロジェクト: egelke/eHI
 public NewsPostMaster(SecurityInfo self, ehBoxPublicationPortTypeClient publish, ehBoxConsultationPortTypeClient consult, EtkDepotPortTypeClient etkDepot)
     : base(self, etkDepot)
 {
     this.publish = publish;
     this.consult = consult;
 }
コード例 #4
0
ファイル: NewsPostMaster.cs プロジェクト: svn2github/ehi
 public NewsPostMaster(SecurityInfo self, ehBoxPublicationPortTypeClient publish, ehBoxConsultationPortTypeClient consult, EtkDepotPortTypeClient etkDepot)
     : base(self, etkDepot)
 {
     this.publish = publish;
     this.consult = consult;
 }