Example #1
0
        public async Task NotifyTest()
        {
            var slackNotificationService = new SlackNotificationService();
            var result = await slackNotificationService.Notify(
                "Test",
                @"https://hooks.slack.com/services/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",
                "sasaki_y",
                "sasaki_y");

            Assert.IsFalse(result);
        }
        private static void MailRecieved(MessageReceived[] messages)
        {
            var slack = new SlackNotificationService();
            foreach (var msg in messages)
            {
                var text =string.Format("Support email received FROM: {0} => TO: {1} -- RE: {2}", msg.From, string.Join(",", msg.To), msg.Subject);
                Console.WriteLine(text);

                slack.Notify(_supportChannelId, text + " -- please allow a litle while for Trello to find and process the email.");
            }
        }
Example #3
0
        public async Task TestMethod1()
        {
            var slackNotificationService = new SlackNotificationService();
            var result = await slackNotificationService.Notify(
                "Test",
                "hogehoge",
                "sasaki_y",
                "sasaki_y");

            Assert.IsFalse(result);
        }