2021-04-29 12:01:02 +02:00

24 lines
677 B
C#

using System.Linq;
using Application;
using Domain;
namespace Infrastructure.Repositories.Memory
{
public class Data : IData
{
private readonly LinkRepository _linkRepository;
private readonly CommentRepository _commentRepository;
public IQueryable<Link> Links => _linkRepository.Links.AsQueryable();
public IQueryable<Comment> Comments => _commentRepository.Comments.AsQueryable();
public IQueryable<IUser> Users => throw new System.NotImplementedException();
public Data(LinkRepository linkRepository, CommentRepository commentRepository)
{
_linkRepository = linkRepository;
_commentRepository = commentRepository;
}
}
}