public void Update_NoPendingChanges_Failure() { PortGroup oPortGroup = new PortGroup(); var res = oPortGroup.Update(); Assert.IsFalse(res.Success, "Updating data with no pending changes should fail"); }
public void Delete_EmptyObject_Failure() { PortGroup oPortGroup = new PortGroup(); var res = oPortGroup.Delete(); Assert.IsFalse(res.Success, "Deleting data with empty object should fail"); }
public void RefreshortGroupData_EmptyObjectId_Failure() { PortGroup oPortGroup = new PortGroup(); var res = oPortGroup.RefetchPortGroupData(); Assert.IsFalse(res.Success, "Refreshing data with empty object should fail"); }
public void Constructor_FetchByInvalidName_Failure() { Reset(); PortGroup oPorts = new PortGroup(_mockServer, "", "Invalid Name"); Console.WriteLine(oPorts); }
public void AddPortGroup_NullConnectionServer_Failure() { var res = PortGroup.AddPortGroup(null, "Display Name", "PhoneSystemId", "HostAddress", TelephonyIntegrationMethodEnum.SCCP, "sccpPrefix"); Assert.IsFalse(res.Success, "Calling UpdatePortGroup with null ConnectionServer should fail."); }
public void AddPortGroup_EmptyPhoneSystemId_Failure() { var res = PortGroup.AddPortGroup(_mockServer, "Display Name", "", "HostAddress", TelephonyIntegrationMethodEnum.SCCP, "sccpPrefix"); Assert.IsFalse(res.Success, "Calling UpdatePortGroup with empty phone system ID should fail."); }
public void PropertyGetFetch_SipDoAuthenticate() { PortGroup oPortGroup = new PortGroup(); const bool expectedValue = true; oPortGroup.SipDoAuthenticate = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("SipDoAuthenticate", expectedValue), "SipDoAuthenticate value get fetch failed"); }
public void PropertyGetFetch_SipContactLineName() { PortGroup oPortGroup = new PortGroup(); const string expectedValue = "String test value"; oPortGroup.SipContactLineName = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("SipContactLineName", expectedValue), "SipContactLineName value get fetch failed"); }
public void PropertyGetFetch_ResetStatusEnum() { PortGroup oPortGroup = new PortGroup(); const ResetStatusEnum expectedValue = ResetStatusEnum.InProgress; oPortGroup.ResetStatusEnum = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("ResetStatusEnum", (int)expectedValue), "ResetStatusEnum value get fetch failed"); }
public void PropertyGetFetch_DtmfDialInterDigitDelayMs() { PortGroup oPortGroup = new PortGroup(); const int expectedValue = 1234; oPortGroup.DtmfDialInterDigitDelayMs = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("DtmfDialInterDigitDelayMs", expectedValue), "DtmfDialInterDigitDelayMs value get fetch failed"); }
public void PropertyGetFetch_SkinnyDevicePrefix() { PortGroup oPortGroup = new PortGroup(); const string expectedValue = "String test"; oPortGroup.SkinnyDevicePrefix = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("SkinnyDevicePrefix", expectedValue), "SkinnyDevicePrefix value get fetch failed"); }
public void PropertyGetFetch_SipTLSModeEnum() { PortGroup oPortGroup = new PortGroup(); const SipTlsModes expectedValue = SipTlsModes.Authenticated; oPortGroup.SipTLSModeEnum = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("SipTLSModeEnum", (int)expectedValue), "SipTLSModeEnum value get fetch failed"); }
public void PropertyGetFetch_SipPreferredMedia() { PortGroup oPortGroup = new PortGroup(); const PreferredTransport expectedValue = PreferredTransport.Ipv6; oPortGroup.SipPreferredMedia = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("SipPreferredMedia", (int)expectedValue), "SipPreferredMedia value get fetch failed"); }
public void PropertyGetFetch_NoiseFreeEnable() { PortGroup oPortGroup = new PortGroup(); const bool expectedValue = true; oPortGroup.NoiseFreeEnable = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("NoiseFreeEnable", expectedValue), "NoiseFreeEnable value get fetch failed"); }
public void PropertyGetFetch_MwiMaxConcurrentRequests() { PortGroup oPortGroup = new PortGroup(); const int expectedValue = 1234; oPortGroup.MwiMaxConcurrentRequests = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("MwiMaxConcurrentRequests", expectedValue), "MwiMaxConcurrentRequests value get fetch failed"); }
public void PropertyGetFetch_MwiRetryIntervalOnSuccessMs() { PortGroup oPortGroup = new PortGroup(); const int expectedValue = 1234; oPortGroup.MwiRetryIntervalOnSuccessMs = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("MwiRetryIntervalOnSuccessMs", expectedValue), "MwiRetryIntervalOnSuccessMs value get fetch failed"); }
public void PropertyGetFetch_MwiOffCode() { PortGroup oPortGroup = new PortGroup(); const string expectedValue = "4321"; oPortGroup.MwiOffCode = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("MwiOffCode", expectedValue), "MwiOffCode value get fetch failed"); }
public void PropertyGetFetch_MediaSipSecurityProfileObjectId() { PortGroup oPortGroup = new PortGroup(); const string expectedValue = "Test string"; oPortGroup.MediaSipSecurityProfileObjectId = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("MediaSipSecurityProfileObjectId", expectedValue), "MediaSipSecurityProfileObjectId value get fetch failed"); }
public void PropertyGetFetch_EnableAGC() { PortGroup oPortGroup = new PortGroup(); const bool expectedValue = true; oPortGroup.EnableAGC = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("EnableAGC", expectedValue), "EnableAGC value get fetch failed"); }
public void PropertyGetFetch_SipDoDtmfKpml() { PortGroup oPortGroup = new PortGroup(); const bool expectedValue = true; oPortGroup.SipDoDtmfKPML = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("SipDoDtmfKPML", expectedValue), "SipDoDtmfKPML value get fetch failed"); }
public void Constructor_NoIds_Success() { PortGroup oPorts = new PortGroup(_mockServer); Console.WriteLine(oPorts.ToString()); Console.WriteLine(oPorts.SelectionDisplayString); Console.WriteLine(oPorts.UniqueIdentifier); }
public void PropertyGetFetch_OutgoingPreDialDelayMs() { PortGroup oPortGroup = new PortGroup(); const int expectedValue = 1234; oPortGroup.OutgoingPreDialDelayMs = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("OutgoingPreDialDelayMs", expectedValue), "OutgoingPreDialDelayMs value get fetch failed"); }
public void PropertyGetFetch_SipRegisterWithProxyServer() { PortGroup oPortGroup = new PortGroup(); const bool expectedValue = true; oPortGroup.SipRegisterWithProxyServer = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("SipRegisterWithProxyServer", expectedValue), "SipRegisterWithProxyServer value get fetch failed"); }
public void GetPortGroups_NullConnectionServer_Failure() { List <PortGroup> oPortGroups; WebCallResult res = PortGroup.GetPortGroups(null, out oPortGroups); Assert.IsFalse(res.Success, "Fetching port groups with null Connection server should fail."); }
public void PropertyGetFetch_SipTransportProtocolEnum() { PortGroup oPortGroup = new PortGroup(); const SipTransportEnum expectedValue = SipTransportEnum.Tcp; oPortGroup.SipTransportProtocolEnum = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("SipTransportProtocolEnum", (int)expectedValue), "SipTransportProtocolEnum value get fetch failed"); }
public void PropertyGetFetch_RecordingToneExtraClipMss() { PortGroup oPortGroup = new PortGroup(); const int expectedValue = 1234; oPortGroup.RecordingToneExtraClipMs = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("RecordingToneExtraClipMs", expectedValue), "RecordingToneExtraClipMs value get fetch failed"); }
public void PropertyGetFetch_WaitForCallInfoMs() { PortGroup oPortGroup = new PortGroup(); const int expectedValue = 345; oPortGroup.WaitForCallInfoMs = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("WaitForCallInfoMs", expectedValue), "WaitForCallInfoMs value get fetch failed"); }
public void PropertyGetFetch_DisplayName() { PortGroup oPortGroup = new PortGroup(); const string expectedValue = "display string test"; oPortGroup.DisplayName = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("DisplayName", expectedValue), "DisplayName value get fetch failed"); }
public void GetPortGroups_Success() { List <PortGroup> oPortGroups; WebCallResult res = PortGroup.GetPortGroups(_connectionServer, out oPortGroups); Assert.IsTrue(res.Success, "Failed to fetch port groups:" + res); Assert.IsTrue(oPortGroups.Count > 0, "No port groups found on Connection server:" + res); }
public void PropertyGetFetch_PreferredCallControl() { PortGroup oPortGroup = new PortGroup(); const PreferredTransport expectedValue = PreferredTransport.Ipv4; oPortGroup.PreferredCallControl = expectedValue; Assert.IsTrue(oPortGroup.ChangeList.ValueExists("PreferredCallControl", (int)expectedValue), "PreferredCallControl value get fetch failed"); }