public void Setup() { _kayakoApiRequest = new Mock <IKayakoApiRequest>(); _troubleshooterController = new TroubleshooterController(_kayakoApiRequest.Object); _responseTroubleshooterCategoryCollection = new TroubleshooterCategoryCollection { new TroubleshooterCategory(), new TroubleshooterCategory() }; _responseTroubleshooterStepCollection = new TroubleshooterStepCollection { new TroubleshooterStep(), new TroubleshooterStep() }; _responseTroubleshooterCommentCollection = new TroubleshooterCommentCollection { new TroubleshooterComment(), new TroubleshooterComment() }; _responseTroubleshooterAttachmentCollection = new TroubleshooterAttachmentCollection { new TroubleshooterAttachment(), new TroubleshooterAttachment() }; }
/// <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); }
public void Setup() { _kayakoApiRequest = new Mock<IKayakoApiRequest>(); _troubleshooterController = new TroubleshooterController(_kayakoApiRequest.Object); _responseTroubleshooterCategoryCollection = new TroubleshooterCategoryCollection { new TroubleshooterCategory(), new TroubleshooterCategory() }; _responseTroubleshooterStepCollection = new TroubleshooterStepCollection { new TroubleshooterStep(), new TroubleshooterStep() }; _responseTroubleshooterCommentCollection = new TroubleshooterCommentCollection { new TroubleshooterComment(), new TroubleshooterComment() }; _responseTroubleshooterAttachmentCollection = new TroubleshooterAttachmentCollection { new TroubleshooterAttachment(), new TroubleshooterAttachment() }; }
/// <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); }