Unit tests working; added logger adapter.

This commit is contained in:
Steve Smith
2017-04-30 08:06:06 -04:00
parent 6f908bb8e5
commit dfe0106ce3
6 changed files with 31 additions and 13 deletions

View File

@@ -13,6 +13,7 @@ using System.Text;
using Microsoft.AspNetCore.Http;
using ApplicationCore.Interfaces;
using Infrastructure.FileSystem;
using Infrastructure.Logging;
namespace Microsoft.eShopWeb
{
@@ -68,6 +69,7 @@ namespace Microsoft.eShopWeb
services.AddScoped<CatalogService>();
services.Configure<CatalogSettings>(Configuration);
services.AddSingleton<IImageService, LocalFileImageService>();
services.AddScoped(typeof(IAppLogger<>), typeof(LoggerAdapter<>));
services.AddMvc();
_services = services;