using HackerNet.Domain; namespace HackerNet.Infrastructure.Repositories.Memory; public class MemoryCommentRepository : ICommentRepository { private List _comments; internal List Comments => _comments; public MemoryCommentRepository(params Comment[] comments) { _comments = comments.ToList(); } public void Add(Comment comment) { _comments.Add(comment); } }