public void Muted_notice_does_not_throw_exception()
        {
            Twitter.Setup(new Setup() {
                { "consumerkey", "jgsldfghdfgu5y" },
                { "consumersecret", "593u46[po3jkryt'lsgldkjfsf,adfsdfg" },
                { "accesstoken", "4528345-jahfkjsdgnpsuehtpuehgjn;SDMnspuihgs" },  // should be "accesstoken"
                { "accesstokensecret", "3573JSL;KGEPUTWPDMS;LKGJRGUITU55L2T" }     // should be "accesstokensecret"
            });

            Notice n = new Notice("This won't be broadcast.");
            n.SetMedia(typeof(Twitter));
            n.Mute().Send();
        }
Beispiel #2
0
        public void Invalid_credentials_throws_NoticeDispatchException()
        {
            Email.Setup(new Setup() {
                { "to", "*****@*****.**" },
                { "from", "*****@*****.**" },
                { "ssl", true },
                { "subject", "This won't be sent" },
                { "server", "smtp.gmail.com" },
                { "port", 587 },
                { "username", "*****@*****.**" },
                { "password", "not_my_password" }
            });

            Notice test = new Notice("This won't be sent");
            test.SetMedia(typeof(Email));
            test.Send();
        }