init
This commit is contained in:
26
DouyinApi.Tests/Common_Test/HttpHelper_Should.cs
Normal file
26
DouyinApi.Tests/Common_Test/HttpHelper_Should.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using DouyinApi.Common.Helper;
|
||||
using Xunit;
|
||||
|
||||
namespace DouyinApi.Tests.Common_Test
|
||||
{
|
||||
public class HttpHelper_Should
|
||||
{
|
||||
|
||||
[Fact]
|
||||
public void Get_Async_Test()
|
||||
{
|
||||
var responseString = HttpHelper.GetAsync("http://apk.neters.club/api/Blog").Result;
|
||||
|
||||
Assert.NotNull(responseString);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Post_Async_Test()
|
||||
{
|
||||
var responseString = HttpHelper.PostAsync("http://apk.neters.club/api/Login/swgLogin", "{\"name\":\"admin\",\"pwd\":\"admin\"}").Result;
|
||||
|
||||
Assert.NotNull(responseString);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user