单元测试:增加OnlineUsers Webapi PUT方法单元测试 link #ITOIA #ITOIB
This commit is contained in:
parent
5790dbe2fb
commit
c6749fff24
|
@ -20,6 +20,13 @@ namespace Bootstrap.Admin.Api
|
||||||
{
|
{
|
||||||
var urls = await Client.GetAsJsonAsync<IEnumerable<KeyValuePair<DateTime, string>>>("UnitTest");
|
var urls = await Client.GetAsJsonAsync<IEnumerable<KeyValuePair<DateTime, string>>>("UnitTest");
|
||||||
Assert.Empty(urls);
|
Assert.Empty(urls);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public async void Put_Ok()
|
||||||
|
{
|
||||||
|
var ret = await Client.PutAsJsonAsync<string, bool>("");
|
||||||
|
Assert.False(ret);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue