单元测试:增加OnlineUsers Webapi PUT方法单元测试 link #ITOIA #ITOIB

This commit is contained in:
Argo Zhang 2019-03-18 10:44:24 +08:00
parent 5790dbe2fb
commit c6749fff24
1 changed files with 8 additions and 1 deletions

View File

@ -20,6 +20,13 @@ namespace Bootstrap.Admin.Api
{
var urls = await Client.GetAsJsonAsync<IEnumerable<KeyValuePair<DateTime, string>>>("UnitTest");
Assert.Empty(urls);
}
}
[Fact]
public async void Put_Ok()
{
var ret = await Client.PutAsJsonAsync<string, bool>("");
Assert.False(ret);
}
}
}