コード例 #1
0
        public static void SampleWithProxy()
        {
            var client = TempMailClient.Create(
                proxy: new WebProxy("163.172.220.221", 8888));

            Sample(client);
        }
コード例 #2
0
        public static async Task SampleWithProxy()
        {
            var client = TempMailClient.Create(
                proxy: new WebProxy("163.172.220.221", 8888));

            await Sample(client);
        }
コード例 #3
0
        public static async Task SampleWithCaptchaProviderAndProxy()
        {
            var client = TempMailClient.Create(
                captchaProvider: new AntiCaptchaProvider("YOUR_API_KEY"),
                proxy: new WebProxy("163.172.220.221", 8888));

            await Sample(client);
        }
コード例 #4
0
        public static async Task SampleWithCaptchaProvider()
        {
            // Used if temp-mail is using cloudflare protection and it's not solved with JS (if needed).
            var client = TempMailClient.Create(
                captchaProvider: new AntiCaptchaProvider("YOUR_API_KEY"));

            await Sample(client);
        }
コード例 #5
0
        public void TestRefresh()
        {
            var client = TempMailClient.Create();

            var mails = client.Inbox.Refresh();

            Assert.AreSame(mails, client.Inbox.Mails);
        }
コード例 #6
0
        public static void Sample()
        {
            var client = TempMailClient.Create();

            Sample(client);
        }
コード例 #7
0
 public static void Initialize(TestContext context)
 {
     client = TempMailClient.Create();
 }
コード例 #8
0
        public void TestMails()
        {
            var client = TempMailClient.Create();

            Assert.IsNotNull(client.Inbox.Mails);
        }