-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathGeeTestTest.cs
More file actions
32 lines (29 loc) · 1.18 KB
/
GeeTestTest.cs
File metadata and controls
32 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Collections.Generic;
using System.Threading.Tasks;
using NUnit.Framework;
using TwoCaptcha.Captcha;
namespace TwoCaptcha.Tests
{
[TestFixture]
public class GeeTestTest : AbstractWrapperTestCase
{
[Test]
public async Task TestAllOptions()
{
GeeTest captcha = new GeeTest();
captcha.SetGt("f2ae6cadcf7886856696502e1d55e00c");
captcha.SetApiServer("api-na.geetest.com");
captcha.SetChallenge("69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC");
captcha.SetUrl("https://launches.endclothing.com/distil_r_captcha.html");
var parameters = new Dictionary<string, string>();
parameters["method"] = "geetest";
parameters["gt"] = "f2ae6cadcf7886856696502e1d55e00c";
parameters["api_server"] = "api-na.geetest.com";
parameters["challenge"] = "69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC";
parameters["pageurl"] = "https://launches.endclothing.com/distil_r_captcha.html";
parameters["soft_id"] = "4582";
parameters["json"] = "0";
await CheckIfCorrectParamsSendAndResultReturned(captcha, parameters);
}
}
}