Exemplo n.º 1
0
        public void MoreTalking()
        {
            DataTable dtable = new DataTable();

            dtable.Columns.Add("Class");
            dtable.Columns.Add("Errors/Failures/Totals");

            dtable.Rows.Add("BusinessObjects.Domains.Tests-nunitTestResults", "0/0/64");
            dtable.Rows.Add("BusinessObjects.Domains.Tests-nunitTestResults", "0/6/6");

            sut = new SlackClient(new Uri("https://hooks.slack.com/services/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").ToString());
            var msg = new SlackMessage();

            //msg.Attach(new SlackAttachment());
            msg.AddData(dtable)
            //.UsingLeftBarColor(Color.White)
            ;

            sut.Send(msg);
        }