public void ConvertNullAPIToAPI() { apiSigningLogo1 = null; converter = new SigningLogoConverter(apiSigningLogo1); Assert.IsNull(converter.ToAPISigningLogo()); }
private OneSpanSign.API.SigningLogo CreateAPISigningLogo() { OneSpanSign.API.SigningLogo result = new OneSpanSign.API.SigningLogo(); result.Language = "en"; result.Image = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAABnCAYAAABW6Y8UAAAABGdBTUEAALGPC\""; return(result); }
public void ConvertSDKToAPI() { sdkSigningLogo1 = CreateSDKSigningLogo(); apiSigningLogo1 = new SigningLogoConverter(sdkSigningLogo1).ToAPISigningLogo(); Assert.IsNotNull(apiSigningLogo1); Assert.AreEqual(apiSigningLogo1.Language, sdkSigningLogo1.Language); Assert.AreEqual(apiSigningLogo1.Image, sdkSigningLogo1.Image); }
public void ConvertAPIToAPI() { apiSigningLogo1 = CreateAPISigningLogo(); converter = new SigningLogoConverter(apiSigningLogo1); apiSigningLogo2 = converter.ToAPISigningLogo(); Assert.IsNotNull(apiSigningLogo2); Assert.AreEqual(apiSigningLogo2, apiSigningLogo1); }
public void ConvertAPIToSDK() { apiSigningLogo1 = CreateAPISigningLogo(); sdkSigningLogo1 = new SigningLogoConverter(apiSigningLogo1).ToSDKSigningLogo(); Assert.IsNotNull(sdkSigningLogo1); Assert.AreEqual(sdkSigningLogo1.Language, apiSigningLogo1.Language); Assert.AreEqual(sdkSigningLogo1.Image, apiSigningLogo1.Image); }