public WholeSaleController(IWholesaleHandler wholeSaleManager) =>
public WholeSaleController(IWholesaleHandler wholeSaleManager) { _wholesaleHandler = wholeSaleManager ?? throw new ArgumentNullException(nameof(_wholesaleHandler)); }
public CsvHelper(IBrandHandler brand, IWholesaleHandler WholesaleHandler, ICategoryHandler catagory) { _brand = brand ?? throw new ArgumentNullException(nameof(_brand)); _wholesaleHandler = WholesaleHandler ?? throw new ArgumentNullException(nameof(_wholesaleHandler)); _category = catagory ?? throw new ArgumentNullException(nameof(_category)); }