1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-25 22:37:27 -04:00

Revert "Swap to dapper and system.text.json for database backend"

This reverts commit d2065bfa1b.
This commit is contained in:
Qstick
2019-12-17 21:17:47 -05:00
parent d778085ba5
commit e937d74b11
155 changed files with 2335 additions and 2328 deletions
@@ -1,11 +1,10 @@
using System;
using System.Linq;
using Dapper;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Movies;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Movies;
namespace NzbDrone.Core.Test.Datastore
{
@@ -15,15 +14,15 @@ namespace NzbDrone.Core.Test.Datastore
public void SingleOrDefault_should_return_null_on_empty_db()
{
Mocker.Resolve<IDatabase>()
.OpenConnection().Query<Movie>("SELECT * FROM Movies")
.SingleOrDefault()
.GetDataMapper().Query<Movie>()
.SingleOrDefault(c => c.CleanTitle == "SomeTitle")
.Should()
.BeNull();
}
[Test]
public void vacuum()
public void vaccume()
{
Mocker.Resolve<IDatabase>().Vacuum();
}