This commit is contained in:
cjd
2025-11-04 21:09:16 +08:00
parent 8260e293c7
commit bb90a020dc
592 changed files with 61749 additions and 27 deletions

View 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);
}
}
}