コード例 #1
0
        public void DomainTest_ReplyMessage()
        {
            ISendMessageService sendMessageService = new SendSiteMessageService();
            Message             readMessage        = new Message("title", "content ", new Sender("sender"), new Recipient("recipient"));
            Contact             reply        = readMessage.Recipient;
            Message             replyMessage = new Message("title", readMessage.Title + "content ", reply, readMessage.Sender);

            Assert.True(sendMessageService.SendMessage(replyMessage));
        }
コード例 #2
0
        public void DomainTest_ForwardMessage()
        {
            ISendMessageService sendMessageService = new SendSiteMessageService();
            Message             readMessage        = new Message("title", "content ", new Sender("sender"), new Recipient("recipient"));
            Contact             recipient          = new Sender("recipient");
            Message             relayMessage       = new Message("title", "content ", readMessage.Recipient, recipient);

            Assert.True(sendMessageService.SendMessage(relayMessage));
        }
コード例 #3
0
        public void DomainTest_SendShortMessage()
        {
            ISendMessageService sendMessageService = new SendSiteMessageService();
            Contact             sender             = new Sender("sender");
            Contact             recipient          = new Recipient("recipient");
            Message             message            = new Message("title", "content ", sender, recipient);

            Assert.True(sendMessageService.SendMessage(message));
        }