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); }
public void TestRefresh() { var client = TempMailClient.Create(); var mails = client.Inbox.Refresh(); Assert.AreSame(mails, client.Inbox.Mails); }
public static void Sample() { var client = TempMailClient.Create(); Sample(client); }
public static void Initialize(TestContext context) { client = TempMailClient.Create(); }
public void TestMails() { var client = TempMailClient.Create(); Assert.IsNotNull(client.Inbox.Mails); }