public void ConvertSDKToSDK() { sdkExternal1 = CreateTypicalSDKExternal(); converter = new ExternalConverter(sdkExternal1); sdkExternal2 = converter.ToSDKExternal(); Assert.IsNotNull(sdkExternal2); Assert.AreEqual(sdkExternal2, sdkExternal1); }
private Silanis.ESL.SDK.External CreateTypicalSDKExternal() { Silanis.ESL.SDK.External sdkExternal = new Silanis.ESL.SDK.External(); sdkExternal.Id = "sdkExternalId"; sdkExternal.Provider = "sdkExternalProvider"; sdkExternal.ProviderName = "sdkExternalProviderName"; return(sdkExternal); }
public void ConvertSDKToAPI() { sdkExternal1 = CreateTypicalSDKExternal(); apiExternal1 = new ExternalConverter(sdkExternal1).ToAPIExternal(); Assert.IsNotNull(apiExternal1); Assert.AreEqual(sdkExternal1.Provider, apiExternal1.Provider); Assert.AreEqual(sdkExternal1.ProviderName, apiExternal1.ProviderName); Assert.AreEqual(sdkExternal1.Id, apiExternal1.Id); }
public void ConvertAPIToSDK() { apiExternal1 = CreateTypicalAPIExternal(); sdkExternal1 = new ExternalConverter(apiExternal1).ToSDKExternal(); Assert.IsNotNull(sdkExternal1); Assert.AreEqual(apiExternal1.Provider, sdkExternal1.Provider); Assert.AreEqual(apiExternal1.ProviderName, sdkExternal1.ProviderName); Assert.AreEqual(apiExternal1.Id, sdkExternal1.Id); }
internal Silanis.ESL.SDK.External ToSDKExternal() { if (apiExternal == null) { return sdkExternal; } sdkExternal = new External(); sdkExternal.Id = apiExternal.Id; sdkExternal.Provider = apiExternal.Provider; sdkExternal.ProviderName = apiExternal.ProviderName; return sdkExternal; }
internal Silanis.ESL.SDK.External ToSDKExternal() { if (apiExternal == null) { return(sdkExternal); } sdkExternal = new External(); sdkExternal.Id = apiExternal.Id; sdkExternal.Provider = apiExternal.Provider; sdkExternal.ProviderName = apiExternal.ProviderName; return(sdkExternal); }
private Silanis.ESL.SDK.External CreateTypicalSDKExternal() { Silanis.ESL.SDK.External sdkExternal = new Silanis.ESL.SDK.External(); sdkExternal.Id = "sdkExternalId"; sdkExternal.Provider = "sdkExternalProvider"; sdkExternal.ProviderName = "sdkExternalProviderName"; return sdkExternal; }
public void ConvertNullSDKToSDK() { sdkExternal1 = null; converter = new ExternalConverter(sdkExternal1); Assert.IsNull(converter.ToSDKExternal()); }
public ExternalConverter(External sdkExternal) { this.sdkExternal = sdkExternal; }