public ShoppingListItemsController(IShoppingListItemRepository ShoppingListItemRepository , IMapper mapper) { _ShoppingListItemRepository = ShoppingListItemRepository ?? throw new ArgumentNullException(nameof(ShoppingListItemRepository)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public ShoppingListItemService(IShoppingListItemRepository repository, IItemsOrderingHelper itemsOrderingHelper) { this.repository = repository ?? throw new ArgumentNullException(nameof(repository)); this.itemsOrderingHelper = itemsOrderingHelper ?? throw new ArgumentNullException(nameof(itemsOrderingHelper)); }