mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 22:23:34 -07:00
Fix broken tests
This commit is contained in:
parent
1b6e97a0ae
commit
efb62f72d8
3 changed files with 9 additions and 3 deletions
|
@ -186,7 +186,7 @@ namespace Ombi.Core.Tests.Rule.Request
|
||||||
TheMovieDbId = "1",
|
TheMovieDbId = "1",
|
||||||
Title = "Test",
|
Title = "Test",
|
||||||
ReleaseYear = "2001",
|
ReleaseYear = "2001",
|
||||||
Episodes = new List<PlexEpisode>
|
Episodes = new List<IMediaServerEpisode>
|
||||||
{
|
{
|
||||||
new PlexEpisode
|
new PlexEpisode
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Ombi.Core.Models.Search;
|
using Ombi.Core.Models.Search;
|
||||||
|
@ -18,12 +19,14 @@ namespace Ombi.Core.Tests.Rule.Search
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
ContextMock = new Mock<IEmbyContentRepository>();
|
ContextMock = new Mock<IEmbyContentRepository>();
|
||||||
|
LoggerMock = new Mock<ILogger<EmbyAvailabilityRule>>();
|
||||||
SettingsMock = new Mock<ISettingsService<EmbySettings>>();
|
SettingsMock = new Mock<ISettingsService<EmbySettings>>();
|
||||||
Rule = new EmbyAvailabilityRule(ContextMock.Object, SettingsMock.Object);
|
Rule = new EmbyAvailabilityRule(ContextMock.Object, LoggerMock.Object, SettingsMock.Object);
|
||||||
}
|
}
|
||||||
|
|
||||||
private EmbyAvailabilityRule Rule { get; set; }
|
private EmbyAvailabilityRule Rule { get; set; }
|
||||||
private Mock<IEmbyContentRepository> ContextMock { get; set; }
|
private Mock<IEmbyContentRepository> ContextMock { get; set; }
|
||||||
|
private Mock<ILogger<EmbyAvailabilityRule>> LoggerMock { get; set; }
|
||||||
private Mock<ISettingsService<EmbySettings>> SettingsMock { get; set; }
|
private Mock<ISettingsService<EmbySettings>> SettingsMock { get; set; }
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Ombi.Core.Models.Search;
|
using Ombi.Core.Models.Search;
|
||||||
|
@ -18,12 +19,14 @@ namespace Ombi.Core.Tests.Rule.Search
|
||||||
public void Setup()
|
public void Setup()
|
||||||
{
|
{
|
||||||
ContextMock = new Mock<IJellyfinContentRepository>();
|
ContextMock = new Mock<IJellyfinContentRepository>();
|
||||||
|
LoggerMock = new Mock<ILogger<JellyfinAvailabilityRule>>();
|
||||||
SettingsMock = new Mock<ISettingsService<JellyfinSettings>>();
|
SettingsMock = new Mock<ISettingsService<JellyfinSettings>>();
|
||||||
Rule = new JellyfinAvailabilityRule(ContextMock.Object, SettingsMock.Object);
|
Rule = new JellyfinAvailabilityRule(ContextMock.Object, LoggerMock.Object, SettingsMock.Object);
|
||||||
}
|
}
|
||||||
|
|
||||||
private JellyfinAvailabilityRule Rule { get; set; }
|
private JellyfinAvailabilityRule Rule { get; set; }
|
||||||
private Mock<IJellyfinContentRepository> ContextMock { get; set; }
|
private Mock<IJellyfinContentRepository> ContextMock { get; set; }
|
||||||
|
private Mock<ILogger<JellyfinAvailabilityRule>> LoggerMock { get; set; }
|
||||||
private Mock<ISettingsService<JellyfinSettings>> SettingsMock { get; set; }
|
private Mock<ISettingsService<JellyfinSettings>> SettingsMock { get; set; }
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue