Skip to content

Commit

Permalink
πŸ’‰ Add service injecion in queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Beelzenef committed Jan 21, 2024
1 parent 5da6c8d commit 274b32e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ public class UserQueries : IUserQueries
private readonly IUserStatusQueries _userStatusCommands;
private readonly IUserService _service;

public UserQueries(IUserStatusQueries userStatusCommands)
public UserQueries(IUserService userService, IUserStatusQueries userStatusCommands)
{
_userStatusCommands = userStatusCommands ?? throw new ArgumentNullException(nameof(userStatusCommands));
_service = userService ?? throw new ArgumentNullException(nameof(userService));
}

public List<UserDto> AllUsersQuery()
Expand Down

0 comments on commit 274b32e

Please sign in to comment.