public void convertSDKToSDK() { sdkEventNotificationConfig1 = CreateTypicalSDKEventNotificationConfig(); sdkEventNotificationConfig2 = new EventNotificationConfigConverter(sdkEventNotificationConfig1).ToSDKEventNotificationConfig(); Assert.IsNotNull(sdkEventNotificationConfig2); Assert.AreEqual(sdkEventNotificationConfig2, sdkEventNotificationConfig1); }
public void convertSDKToSDK() { sdkEventNotificationConfig1 = CreateTypicalSDKEventNotificationConfig(); sdkEventNotificationConfig2 = new EventNotificationConfigConverter(sdkEventNotificationConfig1).ToSDKEventNotificationConfig(); Assert.IsNotNull(sdkEventNotificationConfig2); Assert.AreEqual(sdkEventNotificationConfig2, sdkEventNotificationConfig1); }
public EventNotificationConfig build() { EventNotificationConfig result = new EventNotificationConfig(url); foreach (NotificationEvent notificationEvent in events) { result.NotificationEvents.Add(notificationEvent); } return result; }
public EventNotificationConfig build() { Support.LogMethodEntry(); EventNotificationConfig result = new EventNotificationConfig(url); foreach (NotificationEvent notificationEvent in events) { result.NotificationEvents.Add(notificationEvent); } Support.LogMethodExit(result); return result; }
override public void Execute() { // Register for event notification eslClient.EventNotificationService.Register(EventNotificationConfigBuilder.NewEventNotificationConfig(URL) .ForEvent(EVENT1) .ForEvent(EVENT2) .ForEvent(EVENT3)); // Get the registered event notifications eventNotificationConfig = eslClient.EventNotificationService.GetEventNotificationConfig(); }
public void convertSDKToAPI() { sdkEventNotificationConfig1 = CreateTypicalSDKEventNotificationConfig(); apiCallback1 = new EventNotificationConfigConverter(sdkEventNotificationConfig1).ToAPICallback(); Assert.IsNotNull(apiCallback1); Assert.AreEqual(apiCallback1.Url, sdkEventNotificationConfig1.Url); Assert.AreEqual(apiCallback1.Events.Count, 3); Assert.AreEqual(apiCallback1.Events[0].ToString(), sdkEventNotificationConfig1.NotificationEvents[0].ToString()); Assert.AreEqual(apiCallback1.Events[1].ToString(), sdkEventNotificationConfig1.NotificationEvents[1].ToString()); Assert.AreEqual(apiCallback1.Events[2].ToString(), sdkEventNotificationConfig1.NotificationEvents[2].ToString()); }
public EventNotificationConfig build() { EventNotificationConfig result = new EventNotificationConfig(url); foreach (NotificationEvent notificationEvent in events) { result.NotificationEvents.Add(notificationEvent); } return(result); }
public EventNotificationConfig build() { Support.LogMethodEntry(); EventNotificationConfig result = new EventNotificationConfig(url); foreach (NotificationEvent notificationEvent in events) { result.NotificationEvents.Add(notificationEvent); } Support.LogMethodExit(result); return(result); }
public void convertSDKToAPI() { sdkEventNotificationConfig1 = CreateTypicalSDKEventNotificationConfig(); apiCallback1 = new EventNotificationConfigConverter(sdkEventNotificationConfig1).ToAPICallback(); Assert.IsNotNull(apiCallback1); Assert.AreEqual(apiCallback1.Url, sdkEventNotificationConfig1.Url); Assert.AreEqual(apiCallback1.Events.Count, 3); Assert.AreEqual(apiCallback1.Events[0], sdkEventNotificationConfig1.NotificationEvents[0].getApiValue()); Assert.AreEqual(apiCallback1.Events[1], sdkEventNotificationConfig1.NotificationEvents[1].getApiValue()); Assert.AreEqual(apiCallback1.Events[2], sdkEventNotificationConfig1.NotificationEvents[2].getApiValue()); }
public void convertAPIToSDK() { apiCallback1 = CreateTypicalAPICallback(); sdkEventNotificationConfig1 = new EventNotificationConfigConverter(apiCallback1).ToSDKEventNotificationConfig(); Assert.IsNotNull(sdkEventNotificationConfig1); Assert.AreEqual(sdkEventNotificationConfig1.Url, apiCallback1.Url); Assert.AreEqual(sdkEventNotificationConfig1.NotificationEvents.Count, 3); Assert.AreEqual(sdkEventNotificationConfig1.NotificationEvents[0].getApiValue(), apiCallback1.Events[0]); Assert.AreEqual(sdkEventNotificationConfig1.NotificationEvents[1].getApiValue(), apiCallback1.Events[1]); Assert.AreEqual(sdkEventNotificationConfig1.NotificationEvents[2].getApiValue(), apiCallback1.Events[2]); }
public Silanis.ESL.SDK.EventNotificationConfig ToSDKEventNotificationConfig() { if (apiCallback == null) { return sdkEventNotificationConfig; } EventNotificationConfig eventNotificationConfig = new EventNotificationConfig(apiCallback.Url); foreach (CallbackEvent callbackEvent in apiCallback.Events) { eventNotificationConfig.AddEvent(new EventNotificationConverter(callbackEvent).ToSDKNotificationEvent()); } return eventNotificationConfig; }
public Silanis.ESL.SDK.EventNotificationConfig ToSDKEventNotificationConfig() { if (apiCallback == null) { return(sdkEventNotificationConfig); } EventNotificationConfig eventNotificationConfig = new EventNotificationConfig(apiCallback.Url); foreach (string callbackEvent in apiCallback.Events) { eventNotificationConfig.AddEvent(new EventNotificationConverter(callbackEvent).ToSDKNotificationEvent()); } return(eventNotificationConfig); }
public void convertNullSDKToSDK() { sdkEventNotificationConfig1 = null; converter = new EventNotificationConfigConverter(sdkEventNotificationConfig1); Assert.IsNull(converter.ToSDKEventNotificationConfig()); }
public void convertNullSDKToSDK() { sdkEventNotificationConfig1 = null; converter = new EventNotificationConfigConverter(sdkEventNotificationConfig1); Assert.IsNull(converter.ToSDKEventNotificationConfig()); }