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 ContractGridService(IUnitOfWork uow) { _uow = uow; _contractConverter = new ContractConverter(); _projectConverter = new ProjectConverter(); _companyConverter = new CompanyConverter(); _supervisorConverter = new SupervisorConverter(); }
public void ConvertSDKToSDK() { sdkCompany = CreateTypicalSDKCompany(); converter = new CompanyConverter(sdkCompany); Company company = converter.ToSDKCompany(); Assert.IsNotNull(company); Assert.AreEqual(sdkCompany, company); }
public void ConvertAPIToAPI() { apiCompany = CreateTypicalAPICompany(); converter = new CompanyConverter(apiCompany); OneSpanSign.API.Company company = converter.ToAPICompany(); Assert.IsNotNull(company); Assert.AreEqual(apiCompany, company); }
public void ConvertAPIToSDK() { apiCompany = CreateTypicalAPICompany(); converter = new CompanyConverter(apiCompany); Company company = converter.ToSDKCompany(); Assert.IsNotNull(company); Assert.AreEqual(CO_ID, company.Id); Assert.AreEqual(CO_ADDR_ADDR1, company.Address.Address1); }
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); }
public CompanyService(IUnitOfWork uow) { _uow = uow; _converter = new CompanyConverter(); }
/// <summary> /// Constructor Method /// </summary> /// <param name="companyService"></param> /// <param name="companyConverter"></param> public CompanyController(ICompanyService companyService, CompanyConverter companyConverter) { _companyService = companyService; _companyConverter = companyConverter; }
public CompanyConverterShould() { _converter = new CompanyConverter(); }