public SnippetCollection(ISnippetRepository repo) { _repo = repo; this.AddRange(_repo.GetAllSnippets()); }