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

            Sample(client);
        }
        public static async Task SampleWithProxy()
        {
            var client = TempMailClient.Create(
                proxy: new WebProxy("163.172.220.221", 8888));

            await Sample(client);
        }
        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);
        }
        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);
        }