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 mockIApiService = new Mock(); ApiController _apiController; public ApiTest() { _apiController = new ApiController(mockIApiService.Object); } [Fact] public async void GetList() { var p = new PageInput(); var res = await _apiController.GetPage(p); Assert.True(res.Success); //var data = res.; //Assert.NotNull(data); } } }