Stop the Cachers from bombing out when the response from the 3rd party api returns an exception or invalid response. #171

This commit is contained in:
tidusjar 2016-04-21 12:10:36 +01:00
parent 54ab4854e6
commit 076a75b82f
12 changed files with 138 additions and 29 deletions

View file

@ -45,6 +45,7 @@ using PlexRequests.Store.Repository;
using PlexRequests.UI.Models;
using PlexRequests.UI.Modules;
using PlexRequests.Helpers;
using PlexRequests.UI.Helpers;
namespace PlexRequests.UI.Tests
{
@ -121,7 +122,13 @@ namespace PlexRequests.UI.Tests
with.Dependency(PushoverApi.Object);
with.Dependency(NotificationService.Object);
with.Dependency(HeadphonesSettings.Object);
with.Dependencies(Cache.Object);
with.Dependency(Cache.Object);
with.ApplicationStartup(
(container, pipelines) =>
{
var loc = ServiceLocator.Instance;
loc.SetContainer(container);
});
with.RootPathProvider<TestRootPathProvider>();
with.RequestStartup((container, pipelines, context) =>
{