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 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>>();

View File

@ -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()
{ {