mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
Dapper and STJson
Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using Moq;
|
||||
using NzbDrone.Core.Datastore;
|
||||
@@ -21,6 +22,7 @@ namespace NzbDrone.Core.Test.Framework
|
||||
void Delete<T>(T childModel)
|
||||
where T : ModelBase, new();
|
||||
IDirectDataMapper GetDirectDataMapper();
|
||||
IDbConnection OpenConnection();
|
||||
}
|
||||
|
||||
public class TestDatabase : ITestDatabase
|
||||
@@ -74,5 +76,10 @@ namespace NzbDrone.Core.Test.Framework
|
||||
{
|
||||
return new DirectDataMapper(_dbConnection);
|
||||
}
|
||||
|
||||
public IDbConnection OpenConnection()
|
||||
{
|
||||
return _dbConnection.OpenConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user