using System.Linq.Expressions; using ApplicationHub.Domain.Contracts; using ApplicationHub.Domain.Contracts.Authentication.Models; using AutoMapper; namespace ApplicationHub.Data.InMemory.Authentication; public class UserDataContext(IMapper mapper) : IRepository { public User? GetUserByUserName(string userName) { var result = UserData.Source .Where(x => x.UserName == userName && x.Active) .ToList(); return mapper.Map>(result).FirstOrDefault(); } public IEnumerable Find(Expression>? where = null, int? limit = null, int? offset = null, List>, OrderDirection>>? order = null) { throw new NotImplementedException(); } }