32 lines
		
	
	
		
			763 B
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			763 B
		
	
	
	
		
			C#
		
	
	
| using System.Threading.Tasks;
 | |
| using UserPointManagement.Application.Services;
 | |
| using UserPointManagement.Model.Dtos;
 | |
| using UserPointManagement.Model.Dtos.User;
 | |
| using Xunit;
 | |
| 
 | |
| namespace UserPointManagement.Application.Tests.Services;
 | |
| 
 | |
| public class UserServiceTest
 | |
| {
 | |
|     private readonly IUserService _userService;
 | |
| 
 | |
|     public UserServiceTest(IUserService userService)
 | |
|     {
 | |
|         _userService = userService;
 | |
|     }
 | |
| 
 | |
|     [Fact]
 | |
|     public async Task GetUsers()
 | |
|     {
 | |
|         var res = await _userService.GetUsers(new GetUserDto()).ConfigureAwait(false);
 | |
|         
 | |
|         Assert.NotNull(res);
 | |
|     }
 | |
| 
 | |
|     [Fact]
 | |
|     public async Task GetAllUsers()
 | |
|     {
 | |
|         var res = await _userService.GetAllUsers().ConfigureAwait(false);
 | |
|         Assert.NotEmpty(res);
 | |
|     }
 | |
| } |