public void ConvertNullAPIToAPI() { apiCompany = null; converter = new CompanyConverter(apiCompany); Assert.IsNull(converter.ToAPICompany()); }
public void ConvertNullSDKToAPI() { sdkCompany = null; converter = new CompanyConverter(sdkCompany); Assert.IsNull(converter.ToAPICompany()); }
public void ConvertAPIToAPI() { apiCompany = CreateTypicalAPICompany(); converter = new CompanyConverter(apiCompany); OneSpanSign.API.Company company = converter.ToAPICompany(); Assert.IsNotNull(company); Assert.AreEqual(apiCompany, company); }
public void ConvertSDKToAPI() { sdkCompany = CreateTypicalSDKCompany(); converter = new CompanyConverter(sdkCompany); OneSpanSign.API.Company company = converter.ToAPICompany(); Assert.IsNotNull(company); Assert.AreEqual(CO_ID, company.Id); Assert.AreEqual(CO_ADDR_ADDR1, company.Address.Address1); }