mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
added simple repo tests, some resharper templates for nunit
This commit is contained in:
parent
e7deda4d5d
commit
3c2d1d4707
4 changed files with 148 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue