You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
619 B
26 lines
619 B
using Tiobon.Core.Helper;
|
|
using Xunit;
|
|
|
|
namespace Tiobon.Core.Tests.Common_Test
|
|
{
|
|
public class HttpHelper_Should
|
|
{
|
|
|
|
[Fact]
|
|
public async void Get_Async_Test()
|
|
{
|
|
var responseString = (await HttpHelper.GetAsync("http://apk.neters.club/api/Tiobon"));
|
|
|
|
Assert.NotNull(responseString);
|
|
}
|
|
|
|
[Fact]
|
|
public void Post_Async_Test()
|
|
{
|
|
var responseString = HttpHelper.PostAsync("http://apk.neters.club/api/Login/swgLogin", "{\"name\":\"admin\",\"pwd\":\"admin\"}");
|
|
|
|
Assert.NotNull(responseString);
|
|
}
|
|
|
|
}
|
|
}
|
|
|