public VideosController(IVideoServices videoServices, IMapper mapper, IMemoryCache cache, ICommentServices commentServices, IVidconfileUserServices userServices) { this.videoServices = videoServices ?? throw new NullReferenceException("videoServices cannot be null"); this.mapper = mapper ?? throw new NullReferenceException("mapper cannot be null"); this.cache = cache ?? throw new NullReferenceException("cache cannot be null"); this.commentServices = commentServices ?? throw new NullReferenceException("commentServices cannot be null"); this.userServices = userServices ?? throw new NullReferenceException("userServices cannot be null"); }
public UsersController(IVidconfileUserServices userServices, IMapper mapper) { this.userServices = userServices ?? throw new NullReferenceException("userServices cannot be null"); this.mapper = mapper ?? throw new NullReferenceException("mapper cannot be null"); }
public AuthController(IVidconfileUserServices userServices, IConfiguration config) { this.userServices = userServices ?? throw new NullReferenceException("userServices cannot be null or empty"); this.config = config ?? throw new NullReferenceException("config cannot be null or empty"); }