Exemplo n.º 1
0
        public void ConvertNullAPIToAPI()
        {
            apiCompany = null;
            converter  = new CompanyConverter(apiCompany);

            Assert.IsNull(converter.ToAPICompany());
        }
Exemplo n.º 2
0
        public void ConvertNullSDKToAPI()
        {
            sdkCompany = null;
            converter  = new CompanyConverter(sdkCompany);

            Assert.IsNull(converter.ToAPICompany());
        }
Exemplo n.º 3
0
        public void ConvertAPIToAPI()
        {
            apiCompany = CreateTypicalAPICompany();
            converter  = new CompanyConverter(apiCompany);

            OneSpanSign.API.Company company = converter.ToAPICompany();

            Assert.IsNotNull(company);
            Assert.AreEqual(apiCompany, company);
        }
Exemplo n.º 4
0
        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);
        }