Unit tests working; added logger adapter.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user