diff --git a/TestAppRuna/API/CartController.cs b/TestAppRuna/API/CartController.cs index f6f8376..fe6e22b 100644 --- a/TestAppRuna/API/CartController.cs +++ b/TestAppRuna/API/CartController.cs @@ -15,9 +15,9 @@ namespace TestAppRuna.API [ApiController] public class CartController : ControllerBase { - public CartService CartSvc { get; } + public ICartService CartSvc { get; } - public CartController(CartService cartSvc) + public CartController(ICartService cartSvc) { this.CartSvc = cartSvc; } diff --git a/TestAppRuna/Startup.cs b/TestAppRuna/Startup.cs index 40f72c5..e85f3ed 100644 --- a/TestAppRuna/Startup.cs +++ b/TestAppRuna/Startup.cs @@ -35,7 +35,7 @@ namespace TestAppRuna services.AddSingleton(); services.AddScoped(); - + services.AddScoped(); services.Configure(Configuration); services.AddScoped(di => di.GetRequiredService>().CurrentValue);