|
|
|
@ -1,7 +1,10 @@
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Data.SQLite;
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using Moq;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using NzbDrone.Core.Datastore.Converters;
|
|
|
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
|
using NzbDrone.Core.Movies.Commands;
|
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
|
|
|
|
|
@ -42,6 +45,14 @@ namespace NzbDrone.Core.Test.Datastore.Converters
|
|
|
|
|
Subject.Parse(data).Should().BeOfType<RefreshMovieCommand>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void should_return_unknown_command_when_getting_json_from_db()
|
|
|
|
|
{
|
|
|
|
|
var data = "{\"name\": \"EnsureMediaCovers\"}";
|
|
|
|
|
|
|
|
|
|
Subject.Parse(data).Should().BeOfType<UnknownCommand>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void should_return_null_for_null_value_when_getting_from_db()
|
|
|
|
|
{
|
|
|
|
|