test: 增加登录用户三次请求返回验证码单元测试

This commit is contained in:
Argo Zhang 2019-07-15 09:07:22 +08:00
parent 1689a5da92
commit 5f940611aa
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,12 @@ namespace Bootstrap.Admin.Api.SqlServer
{
var ret = await Client.PutAsJsonAsync<string, bool>("");
Assert.False(ret);
// 三次 Put 请求后返回真
ret = await Client.PutAsJsonAsync<string, bool>("");
ret = await Client.PutAsJsonAsync<string, bool>("");
ret = await Client.PutAsJsonAsync<string, bool>("");
Assert.True(ret);
}
}
}