|
|
|
@ -30,6 +30,7 @@ using Moq;
|
|
|
|
|
|
|
|
|
|
using Nancy;
|
|
|
|
|
using Nancy.Testing;
|
|
|
|
|
using Nancy.TinyIoc;
|
|
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
@ -39,15 +40,18 @@ using PlexRequests.Api.Interfaces;
|
|
|
|
|
using PlexRequests.Api.Models.Plex;
|
|
|
|
|
using PlexRequests.Core;
|
|
|
|
|
using PlexRequests.Core.SettingModels;
|
|
|
|
|
using PlexRequests.UI.Helpers;
|
|
|
|
|
using PlexRequests.UI.Models;
|
|
|
|
|
using PlexRequests.UI.Modules;
|
|
|
|
|
|
|
|
|
|
namespace PlexRequests.UI.Tests
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
[Ignore("Needs some work")]
|
|
|
|
|
public class UserLoginModuleTests
|
|
|
|
|
{
|
|
|
|
|
private Mock<ISettingsService<AuthenticationSettings>> AuthMock { get; set; }
|
|
|
|
|
private Mock<ISettingsService<PlexRequestSettings>> PlexRequestMock { get; set; }
|
|
|
|
|
private Mock<IPlexApi> PlexMock { get; set; }
|
|
|
|
|
|
|
|
|
|
[SetUp]
|
|
|
|
@ -55,6 +59,7 @@ namespace PlexRequests.UI.Tests
|
|
|
|
|
{
|
|
|
|
|
AuthMock = new Mock<ISettingsService<AuthenticationSettings>>();
|
|
|
|
|
PlexMock = new Mock<IPlexApi>();
|
|
|
|
|
PlexRequestMock = new Mock<ISettingsService<PlexRequestSettings>>();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -68,6 +73,7 @@ namespace PlexRequests.UI.Tests
|
|
|
|
|
with.Module<UserLoginModule>();
|
|
|
|
|
with.Dependency(AuthMock.Object);
|
|
|
|
|
with.Dependency(PlexMock.Object);
|
|
|
|
|
with.Dependency(PlexRequestMock.Object);
|
|
|
|
|
with.RootPathProvider<TestRootPathProvider>();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|