mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
fixed some broken tests. broke some new ones.
This commit is contained in:
parent
57120c9eeb
commit
0a3b0c9973
10 changed files with 76 additions and 46 deletions
|
@ -123,7 +123,7 @@ namespace NzbDrone.Core.Test.Framework
|
|||
{
|
||||
void InsertMany<T>(IEnumerable<T> items) where T : ModelBase, new();
|
||||
void Insert<T>(T item) where T : ModelBase, new();
|
||||
IEnumerable<T> All<T>() where T : ModelBase, new();
|
||||
List<T> All<T>() where T : ModelBase, new();
|
||||
T Single<T>() where T : ModelBase, new();
|
||||
void Update<T>(T childModel) where T : ModelBase, new();
|
||||
void Delete<T>(T childModel) where T : ModelBase, new();
|
||||
|
@ -148,9 +148,9 @@ namespace NzbDrone.Core.Test.Framework
|
|||
new BasicRepository<T>(_dbConnection).Insert(item);
|
||||
}
|
||||
|
||||
public IEnumerable<T> All<T>() where T : ModelBase, new()
|
||||
public List<T> All<T>() where T : ModelBase, new()
|
||||
{
|
||||
return new BasicRepository<T>(_dbConnection).All();
|
||||
return new BasicRepository<T>(_dbConnection).All().ToList();
|
||||
}
|
||||
|
||||
public T Single<T>() where T : ModelBase, new()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue