mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
added /api/resource/{id} route to fancy
stopped scheduler from running during integration tests.
This commit is contained in:
parent
e8d8588199
commit
90fa261a00
5 changed files with 33 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Moq;
|
||||
|
@ -13,6 +14,7 @@ using NzbDrone.Common;
|
|||
using NzbDrone.Common.Composition;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.Jobs;
|
||||
using NzbDrone.Integration.Test.Client;
|
||||
using NzbDrone.Owin;
|
||||
using NzbDrone.Owin.MiddleWare;
|
||||
|
@ -85,6 +87,11 @@ namespace NzbDrone.Integration.Test
|
|||
|
||||
InitDatabase();
|
||||
|
||||
var taskManagerMock = new Mock<ITaskManager>();
|
||||
taskManagerMock.Setup(c => c.GetPending()).Returns(new List<ScheduledTask>());
|
||||
|
||||
Container.TinyContainer.Register(taskManagerMock.Object);
|
||||
|
||||
_bootstrapper = new NancyBootstrapper(Container.TinyContainer);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue