Added UserService tests

This commit is contained in:
2025-03-03 21:45:22 +01:00
parent 67affa8b82
commit 433e97938d
3 changed files with 87 additions and 3 deletions

View File

@@ -27,9 +27,7 @@ public class UserService : BaseService, IUserService
private IQueryable<User> GetUserByUsername(string username)
{
return this._sqlServerContext.Users
.Where(x =>
!x.IsDeleted &&
return this.GetUsers().Where(x =>
String.Equals(x.Username, username, StringComparison.CurrentCultureIgnoreCase)
);
}