Adding unit tests, refactoring file access to a service, adding CatalogImageMissingException.
This commit is contained in:
@@ -11,6 +11,8 @@ using Infrastructure.Identity;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using ApplicationCore.Interfaces;
|
||||
using Infrastructure.FileSystem;
|
||||
|
||||
namespace Microsoft.eShopWeb
|
||||
{
|
||||
@@ -65,6 +67,7 @@ namespace Microsoft.eShopWeb
|
||||
services.AddScoped<ICatalogService, CachedCatalogService>();
|
||||
services.AddScoped<CatalogService>();
|
||||
services.Configure<CatalogSettings>(Configuration);
|
||||
services.AddSingleton<IImageService, LocalFileImageService>();
|
||||
services.AddMvc();
|
||||
|
||||
_services = services;
|
||||
|
||||
Reference in New Issue
Block a user