test: 增加腾讯与阿里 OAuth 认证登录单元测试

This commit is contained in:
Argo Zhang 2020-02-21 13:03:37 +08:00
parent 6e594b08a7
commit 97ebce39ac
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
2 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,7 @@ namespace Bootstrap.Admin.Controllers
protected HttpClient client { get; set; }
/// <summary>
///
///
/// </summary>
/// <param name="factory"></param>
/// <param name="baseAddress"></param>
@ -111,6 +111,8 @@ namespace Bootstrap.Admin.Controllers
[InlineData("Gitee")]
[InlineData("GitHub")]
[InlineData("WeChat")]
[InlineData("Alipay")]
[InlineData("Tencent")]
public async void OAuth_Ok(string url)
{
var r = await client.GetAsync($"/Account/{url}");

View File

@ -67,6 +67,12 @@
"WeChatOptions": {
"Enabled": false
},
"TencentOptions": {
"Enabled": false
},
"AlipayOptions": {
"Enabled": false
},
"SMSOptions": {
"CompanyCode": "<CompanyCode>",
"MD5Key": "MD5Key",