Add test for executor
This commit is contained in:
@@ -296,8 +296,7 @@ public class UserService : IUserService
|
||||
|
||||
public async Task<User> GetUserByIdAsync(int userId)
|
||||
{
|
||||
var allUsers = await _userRepository.GetAllUsersAsync();
|
||||
var user = allUsers.FirstOrDefault(u => u.Id == userId);
|
||||
var user = await _userRepository.GetUserByIdAsync(userId);
|
||||
|
||||
if (user == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user