mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
added simple repo tests, some resharper templates for nunit
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user