mirror of https://github.com/Radarr/Radarr
fixed broken test
This commit is contained in:
parent
dde91569ac
commit
b0ae87840e
|
@ -2,6 +2,7 @@
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NzbDrone.Common;
|
using NzbDrone.Common;
|
||||||
using NzbDrone.Common.Messaging;
|
using NzbDrone.Common.Messaging;
|
||||||
|
using NzbDrone.Core.Datastore;
|
||||||
using NzbDrone.Core.Download;
|
using NzbDrone.Core.Download;
|
||||||
using NzbDrone.Core.Indexers;
|
using NzbDrone.Core.Indexers;
|
||||||
using NzbDrone.Core.Jobs;
|
using NzbDrone.Core.Jobs;
|
||||||
|
@ -39,8 +40,10 @@ namespace NzbDrone.App.Test
|
||||||
public void should_resolve_command_executor_by_name()
|
public void should_resolve_command_executor_by_name()
|
||||||
{
|
{
|
||||||
var genericExecutor = typeof(IExecute<>).MakeGenericType(typeof(RssSyncCommand));
|
var genericExecutor = typeof(IExecute<>).MakeGenericType(typeof(RssSyncCommand));
|
||||||
|
var container = MainAppContainerBuilder.BuildContainer();
|
||||||
|
DbFactory.RegisterDatabase(container);
|
||||||
|
|
||||||
var executor = MainAppContainerBuilder.BuildContainer().Resolve(genericExecutor);
|
var executor = container.Resolve(genericExecutor);
|
||||||
|
|
||||||
executor.Should().NotBeNull();
|
executor.Should().NotBeNull();
|
||||||
executor.Should().BeAssignableTo<IExecute<RssSyncCommand>>();
|
executor.Should().BeAssignableTo<IExecute<RssSyncCommand>>();
|
||||||
|
|
|
@ -11,9 +11,6 @@ namespace NzbDrone.Core.Test.Qualities
|
||||||
|
|
||||||
public class QualitySizeRepositoryFixture : DbTest<QualitySizeRepository, QualitySize>
|
public class QualitySizeRepositoryFixture : DbTest<QualitySizeRepository, QualitySize>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue