public ManageController(IVerificationProvider verification, IMapper mapper, IUsersService usersService, IComputersService computersService, ILaptopsService laptopsService, IDisplaysService displaysService) { Guard.WhenArgument(verification, nameof(verification)).IsNull().Throw(); Guard.WhenArgument(mapper, nameof(mapper)).IsNull().Throw(); Guard.WhenArgument(usersService, nameof(usersService)).IsNull().Throw(); Guard.WhenArgument(computersService, nameof(computersService)).IsNull().Throw(); Guard.WhenArgument(laptopsService, nameof(laptopsService)).IsNull().Throw(); Guard.WhenArgument(displaysService, nameof(displaysService)).IsNull().Throw(); this.verification = verification; this.mapper = mapper; this.usersService = usersService; this.computersService = computersService; this.laptopsService = laptopsService; this.displaysService = displaysService; }
public LaptopsController(ILaptopsService lapService, ICategoriesService catService) { _lapService = lapService; _catService = catService; }