File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/AbpCompanyName.AbpProjectName.Web.Mvc/Controllers
test/AbpCompanyName.AbpProjectName.Tests/Users Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
using AbpCompanyName . AbpProjectName . Controllers ;
7
7
using AbpCompanyName . AbpProjectName . Users ;
8
8
using AbpCompanyName . AbpProjectName . Web . Models . Users ;
9
+ using AbpCompanyName . AbpProjectName . Users . Dto ;
9
10
10
11
namespace AbpCompanyName . AbpProjectName . Web . Controllers
11
12
{
@@ -21,7 +22,7 @@ public UsersController(IUserAppService userAppService)
21
22
22
23
public async Task < ActionResult > Index ( )
23
24
{
24
- var users = ( await _userAppService . GetAll ( new PagedResultRequestDto { MaxResultCount = int . MaxValue } ) ) . Items ; // Paging not implemented yet
25
+ var users = ( await _userAppService . GetAll ( new PagedUserResultRequestDto { MaxResultCount = int . MaxValue } ) ) . Items ; // Paging not implemented yet
25
26
var roles = ( await _userAppService . GetRoles ( ) ) . Items ;
26
27
var model = new UserListViewModel
27
28
{
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public UserAppService_Tests()
21
21
public async Task GetUsers_Test ( )
22
22
{
23
23
// Act
24
- var output = await _userAppService . GetAll ( new PagedResultRequestDto { MaxResultCount = 20 , SkipCount = 0 } ) ;
24
+ var output = await _userAppService . GetAll ( new PagedUserResultRequestDto { MaxResultCount = 20 , SkipCount = 0 } ) ;
25
25
26
26
// Assert
27
27
output . Items . Count . ShouldBeGreaterThan ( 0 ) ;
You can’t perform that action at this time.
0 commit comments