1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

fixed broken test

This commit is contained in:
Keivan Beigi 2013-06-27 18:08:27 -07:00
parent dde91569ac
commit b0ae87840e
2 changed files with 4 additions and 4 deletions

View File

@ -2,6 +2,7 @@
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.Messaging;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Download;
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Jobs;
@ -39,8 +40,10 @@ public void container_should_inject_itself()
public void should_resolve_command_executor_by_name()
{
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().BeAssignableTo<IExecute<RssSyncCommand>>();

View File

@ -11,9 +11,6 @@ namespace NzbDrone.Core.Test.Qualities
public class QualitySizeRepositoryFixture : DbTest<QualitySizeRepository, QualitySize>
{
[SetUp]
public void Setup()
{