Пример #1
0
        public void ConvertNullAPIToAPI()
        {
            apiCompany = null;
            converter  = new CompanyConverter(apiCompany);

            Assert.IsNull(converter.ToAPICompany());
        }
Пример #2
0
        public void ConvertNullSDKToAPI()
        {
            sdkCompany = null;
            converter  = new CompanyConverter(sdkCompany);

            Assert.IsNull(converter.ToAPICompany());
        }
Пример #3
0
 public ContractGridService(IUnitOfWork uow)
 {
     _uow = uow;
     _contractConverter   = new ContractConverter();
     _projectConverter    = new ProjectConverter();
     _companyConverter    = new CompanyConverter();
     _supervisorConverter = new SupervisorConverter();
 }
Пример #4
0
        public void ConvertSDKToSDK()
        {
            sdkCompany = CreateTypicalSDKCompany();
            converter  = new CompanyConverter(sdkCompany);
            Company company = converter.ToSDKCompany();

            Assert.IsNotNull(company);
            Assert.AreEqual(sdkCompany, company);
        }
Пример #5
0
        public void ConvertAPIToAPI()
        {
            apiCompany = CreateTypicalAPICompany();
            converter  = new CompanyConverter(apiCompany);

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

            Assert.IsNotNull(company);
            Assert.AreEqual(apiCompany, company);
        }
Пример #6
0
        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);
        }
Пример #7
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);
        }
Пример #8
0
 public CompanyService(IUnitOfWork uow)
 {
     _uow       = uow;
     _converter = new CompanyConverter();
 }
Пример #9
0
 /// <summary>
 /// Constructor Method
 /// </summary>
 /// <param name="companyService"></param>
 /// <param name="companyConverter"></param>
 public CompanyController(ICompanyService companyService, CompanyConverter companyConverter)
 {
     _companyService   = companyService;
     _companyConverter = companyConverter;
 }
Пример #10
0
 public CompanyConverterShould()
 {
     _converter = new CompanyConverter();
 }