public SystemAccessController(IUserManager userManager, IScriptExecutor scriptExecutor, IDepartmentController departmentController)
 {
     _userManager          = userManager;
     _userPageSize         = ConfigHelper.GetPaginationSize();
     _scriptExecutor       = scriptExecutor;
     _departmentController = departmentController;
 }
 public UserManagerService(IPermissionController permissionController, IUserController userController, IRoleController roleController, IScriptExecutor scriptExecutor, IDepartmentController departmentController)
 {
     _permissionController = permissionController;
     _userController       = userController;
     _roleController       = roleController;
     _scriptExecutor       = scriptExecutor;
     _departmentController = departmentController;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the KayakoRestApi.KayakoService class.
 /// </summary>
 /// <param name="apiKey">Api Key.</param>
 /// <param name="secretKey">Secret Api Key.</param>
 /// <param name="apiUrl">URL of Kayako REST Api</param>
 /// <param name="requestType">Determines how the request URL is formed</param>
 public KayakoClient(string apiKey, string secretKey, string apiUrl, IWebProxy proxy, ApiRequestType requestType)
 {
     _coreController = new CoreController(apiKey, secretKey, apiUrl, proxy, requestType);
     _customFields   = new CustomFieldController(apiKey, secretKey, apiUrl, proxy, requestType);
     _departments    = new DepartmentController(apiKey, secretKey, apiUrl, proxy, requestType);
     _knowledgebase  = new KnowledgebaseController(apiKey, secretKey, apiUrl, proxy, requestType);
     _news           = new NewsController(apiKey, secretKey, apiUrl, proxy, requestType);
     _staff          = new StaffController(apiKey, secretKey, apiUrl, proxy, requestType);
     _tickets        = new TicketController(apiKey, secretKey, apiUrl, proxy, requestType);
     _troubleshooter = new TroubleshooterController(apiKey, secretKey, apiUrl, proxy, requestType);
     _users          = new UserController(apiKey, secretKey, apiUrl, proxy, requestType);
 }
 /// <summary>
 /// Initializes a new instance of the KayakoRestApi.KayakoService class.
 /// </summary>
 /// <param name="apiKey">Api Key.</param>
 /// <param name="secretKey">Secret Api Key.</param>
 /// <param name="apiUrl">URL of Kayako REST Api</param>
 public KayakoClient(string apiKey, string secretKey, string apiUrl)
 {
     _coreController = new CoreController(apiKey, secretKey, apiUrl, null);
     _customFields = new CustomFieldController(apiKey, secretKey, apiUrl, null);
     _departments = new DepartmentController(apiKey, secretKey, apiUrl, null);
     _knowledgebase = new KnowledgebaseController(apiKey, secretKey, apiUrl, null);
     _news = new NewsController(apiKey, secretKey, apiUrl, null);
     _staff = new StaffController(apiKey, secretKey, apiUrl, null);
     _tickets = new TicketController(apiKey, secretKey, apiUrl, null);
     _troubleshooter = new TroubleshooterController(apiKey, secretKey, apiUrl, null);
     _users = new UserController(apiKey, secretKey, apiUrl, null);
 }
Exemple #5
0
 public ScheduleController(IScheduleRepository scheduleRepository)
 {
     _scheduleRepository      = scheduleRepository;
     _departmentController    = new DepartmentController();
     _scheduleShiftController = new ScheduleShiftController();
 }
 public void TestInitializer()
 {
     _departmentController = new DepartmentController(new DepartmentRepository());
 }
        public void SetUp()
        {
            _kayakoApiRequest = new Mock <IKayakoApiRequest>();

            _departmentController = new DepartmentController(_kayakoApiRequest.Object);
        }
        public void SetUp()
        {
            _kayakoApiRequest = new Mock<IKayakoApiRequest>();

            _departmentController = new DepartmentController(_kayakoApiRequest.Object);
        }