We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 035e7ac commit 90310c2Copy full SHA for 90310c2
test/UnitTest/Components/AjaxTest.cs
@@ -14,14 +14,16 @@ public async Task Ajax_Test()
14
{
15
Url = "/api/Login",
16
Method = "POST",
17
- Data = new { UserName = "admin", Password = "1234567" },
18
- ToJson = false
+ Data = new { UserName = "admin", Password = "1234567" }
19
};
20
Assert.Equal("/api/Login", option.Url);
21
Assert.Equal("POST", option.Method);
22
- Assert.False(option.ToJson);
+ Assert.True(option.ToJson);
23
Assert.NotNull(option.Data);
24
+ option.ToJson = false;
25
+ Assert.False(option.ToJson);
26
+
27
var service = Context.Services.GetRequiredService<AjaxService>();
28
await service.InvokeAsync(option);
29
}
0 commit comments