Example #1
0
 public ComputersController(IComputersService computersService, IGraphicsCardsService graphicsCardsService, IUrlHelper urlHelper, IMapper mapper)
 {
     _computersService     = computersService;
     _graphicsCardsService = graphicsCardsService;
     _urlHelper            = urlHelper;
     _mapper = mapper;
 }
Example #2
0
        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;
        }
Example #3
0
 public ComputersController(IComputersService service)
 {
     this.service = service;
 }