Fixing a build break by adding ISystemClock services to the E2E startup
This commit is contained in:
parent
797f802906
commit
3c1f3c94e9
|
|
@ -208,7 +208,7 @@ namespace MusicStore.Areas.Admin.Controllers
|
|||
return HttpNotFound();
|
||||
}
|
||||
|
||||
return new ContentResult { Content = album.AlbumId.ToString(), ContentType = "text/plain" };
|
||||
return new ContentResult { Content = album.AlbumId.ToString() };
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ using Microsoft.Framework.DependencyInjection;
|
|||
using Microsoft.Framework.Logging;
|
||||
using Microsoft.Framework.Runtime;
|
||||
using Microsoft.Net.Http.Server;
|
||||
using MusicStore.Components;
|
||||
using MusicStore.Models;
|
||||
|
||||
namespace MusicStore
|
||||
|
|
@ -73,6 +74,9 @@ namespace MusicStore
|
|||
services.AddCaching();
|
||||
services.AddSession();
|
||||
|
||||
// Add the system clock service
|
||||
services.AddSingleton<ISystemClock, SystemClock>();
|
||||
|
||||
// Configure Auth
|
||||
services.Configure<AuthorizationOptions>(options =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ using Microsoft.Framework.ConfigurationModel;
|
|||
using Microsoft.Framework.DependencyInjection;
|
||||
using Microsoft.Framework.Logging;
|
||||
using Microsoft.Framework.Runtime;
|
||||
using MusicStore.Components;
|
||||
using MusicStore.Models;
|
||||
|
||||
namespace MusicStore
|
||||
|
|
@ -98,6 +99,9 @@ namespace MusicStore
|
|||
services.AddCaching();
|
||||
services.AddSession();
|
||||
|
||||
// Add the system clock service
|
||||
services.AddSingleton<ISystemClock, SystemClock>();
|
||||
|
||||
// Configure Auth
|
||||
services.Configure<AuthorizationOptions>(options =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ using Microsoft.Framework.ConfigurationModel;
|
|||
using Microsoft.Framework.DependencyInjection;
|
||||
using Microsoft.Framework.Logging;
|
||||
using Microsoft.Framework.Runtime;
|
||||
using MusicStore.Components;
|
||||
using MusicStore.Mocks.Common;
|
||||
using MusicStore.Mocks.Facebook;
|
||||
using MusicStore.Mocks.Google;
|
||||
|
|
@ -159,6 +160,9 @@ namespace MusicStore
|
|||
services.AddCaching();
|
||||
services.AddSession();
|
||||
|
||||
// Add the system clock service
|
||||
services.AddSingleton<ISystemClock, SystemClock>();
|
||||
|
||||
// Configure Auth
|
||||
services.Configure<AuthorizationOptions>(options =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue