public void PostWrapupcodesTest() { // TODO: add unit test for the method 'PostWrapupcodes' WrapupCode body = null; // TODO: replace null with proper value var response = instance.PostWrapupcodes(body); Assert.IsInstanceOf <CallableTimeSet> (response, "response is CallableTimeSet"); }
public void PutWrapupcodesCodeIdTest() { // TODO: add unit test for the method 'PutWrapupcodesCodeId' string codeId = null; // TODO: replace null with proper value WrapupCode body = null; // TODO: replace null with proper value var response = instance.PutWrapupcodesCodeId(codeId, body); Assert.IsInstanceOf <WrapupCode> (response, "response is WrapupCode"); }
/// <summary> /// Add a new skill with the name /// </summary> /// <param name="nom"></param> public void CreateWrapupCode(string name) { try { WrapupCode routingWC = new WrapupCode(); //routingWC.Name = name; routingWC.Name = name; routingApi.PostRoutingWrapupcodes(routingWC); } catch (Exception ex) { AddLog($"Error in CreateSkill on {name} : {ex.Message}"); MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void CreateWrapupCodesFromCsv(string filename) { try { string[] lines = System.IO.File.ReadAllLines(filename); WrapupCode routingWC = new WrapupCode(); foreach (string line in lines) { routingWC.Name = line; routingApi.PostRoutingWrapupcodes(routingWC); AddLog("WrapupCode is created : " + line); } } catch (Exception ex) { AddLog($"Error in CreateSkill: {ex.Message}"); MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void Init() { instance = new WrapupCode(); }