added simple repo tests, some resharper templates for nunit

This commit is contained in:
kay.one 2013-02-16 21:35:52 -08:00
commit 3c2d1d4707
4 changed files with 148 additions and 3 deletions

View file

@ -6,9 +6,9 @@ namespace NzbDrone.Core.Datastore
public interface IBasicRepository<TModel>
{
List<TModel> All();
TModel Get(int rootFolderId);
TModel Add(TModel rootFolder);
void Delete(int rootFolderId);
TModel Get(int id);
TModel Add(TModel model);
void Delete(int id);
}
public class BasicRepository<TModel> : IBasicRepository<TModel> where TModel : BaseRepositoryModel, new()