You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Admin.Core/Admin.Core.Tests/Controller.Tests/ApiTest.cs

33 lines
768 B
C#

using Xunit;
using Moq;
using Admin.Core.Model.Admin;
using Admin.Core.Service.Admin.Api;
using Admin.Core.Model.Input;
using Admin.Core.Controllers.Admin;
namespace Admin.Core.Tests.Controller.Tests
{
public class ApiTest
{
Mock<IApiService> mockIApiService = new Mock<IApiService>();
ApiController _apiController;
public ApiTest()
{
_apiController = new ApiController(mockIApiService.Object);
}
[Fact]
public async void GetList()
{
var p = new PageInput<ApiEntity>();
var res = await _apiController.GetPage(p);
Assert.True(res.Success);
//var data = res.;
//Assert.NotNull(data);
}
}
}