public HomeController(IProductService productService, IShoppingTrolleyService shoppingTrolleyService,
                       IUserService userService)
 {
     _productService = productService ??
                       throw new ArgumentNullException(nameof(productService));
     _shoppingTrolleyService = shoppingTrolleyService ??
                               throw new ArgumentNullException(nameof(shoppingTrolleyService));
     _userService = userService;
 }
 public ShoppingTrolleyControllerTest(TestFixture <Startup> fixture)
 {
     _testFixture               = fixture;
     _productDBContext          = _testFixture.CreateDbContext();
     _productRepository         = new ProductRepository(_productDBContext);
     _productService            = new ProductService(_productRepository);
     _shoppingTrolleyService    = new ShoppingTrolleyService(_productService);
     _shoppingTrolleyController = new(_logger, _shoppingTrolleyService);
 }
 public ShoppingTrolleyServiceTest()
 {
     _mockProductService        = new Mock <IProductService>();
     _sutShoppingTrolleyService = new ShoppingTrolleyService(_mockProductService.Object);
 }
 public ShoppingTrolleyController(ILogger <ShoppingTrolleyController> logger, IShoppingTrolleyService shoppingTrolleyService)
 {
     _logger = logger;
     _shoppingTrolleyService = shoppingTrolleyService;
 }