diff --git a/SportsStore/SportsStore.WebUI/Infrastructure/NinjectDependencyResolver.cs b/SportsStore/SportsStore.WebUI/Infrastructure/NinjectDependencyResolver.cs index e179877..7873914 100644 --- a/SportsStore/SportsStore.WebUI/Infrastructure/NinjectDependencyResolver.cs +++ b/SportsStore/SportsStore.WebUI/Infrastructure/NinjectDependencyResolver.cs @@ -7,6 +7,7 @@ using System.Web.Services.Description; using Moq; using Ninject; using SportsStore.Domain.Abstract; +using SportsStore.Domain.Concrete; using SportsStore.Domain.Entities; namespace SportsStore.WebUI.Infrastructure @@ -33,15 +34,7 @@ namespace SportsStore.WebUI.Infrastructure private void AddBindings() { - Mock mock = new Mock(); - mock.Setup(m => m.Products).Returns(new List - { - new Product { Name = "Football", Price = 25 }, - new Product { Name = "Surf board", Price = 179 }, - new Product { Name = "Running shoes", Price = 95 } - }); - - kernel.Bind().ToConstant((mock.Object)); + kernel.Bind().To(); } diff --git a/SportsStore/SportsStore.WebUI/Web.config b/SportsStore/SportsStore.WebUI/Web.config index 161cddf..ca2e27a 100644 --- a/SportsStore/SportsStore.WebUI/Web.config +++ b/SportsStore/SportsStore.WebUI/Web.config @@ -4,15 +4,13 @@ https://go.microsoft.com/fwlink/?LinkId=301880 --> - - -
+ + +