static void Main(string[] args) { //文件相关client端 FileManagerClient fileManagerClient = new FileManagerClient(baseUrl, new DictionaryTokenDataSource(), appId, appSecret); //上传文件相关API checkUploadFile(fileManagerClient); //下载文件相关API checkDownloadFile(fileManagerClient); //签章相关client端 SignClient client = new SignClient(baseUrl, new DictionaryTokenDataSource(), appId, appSecret); //个人用户相关API checkPersonal(client); //企业用户相关API checkCompany(client); //证书相关API checkCert(client); //印章相关API checkSeal(client); //合同相关API checkContract(client); //模板相关API checkTemplate(client); //事件证书-扫码合同相关API checkEventCertScanContract(client); //扫码合同相关API checkScanContract(client); //短信相关API checkSms(client); //签章相关API checkSign(client); //事件证书-签章相关API checkEventCertSign(client); //验签相关API checkSignCheck(client); //认证相关API checkAuth(client); //初始化paas客户端 PaasClient paasClient = new PaasClient(baseUrl, new DictionaryTokenDataSource(), appId, appSecret); //原始调用Paas Api接口,除文件上传以及文件下载API checkPaasApi(paasClient); Console.ReadKey(); }
/// <summary> /// 印章相关API /// </summary> /// <param name="client"></param> static void checkSeal(SignClient client) { SealTest test = new SealTest(client); test.runAllTest(); }
/// <summary> /// 证书相关API /// </summary> /// <param name="client"></param> static void checkCert(SignClient client) { CertTest test = new CertTest(client); test.runAllTest(); }
/// <summary> /// 企业用户相关API /// </summary> /// <param name="client"></param> static void checkCompany(SignClient client) { CompanyTest test = new CompanyTest(client); test.runAllTest(); }
public CompanyTest(SignClient signClient) { this.testName = "企业用户"; this.client = signClient; }
/// <summary> /// 认证相关API /// </summary> /// <param name="client"></param> static void checkAuth(SignClient client) { AuthTest test = new AuthTest(client); test.runAllTest(); }
/// <summary> /// 事件证书-签章相关API /// </summary> /// <param name="client"></param> static void checkEventCertSign(SignClient client) { EventCertSignTest test = new EventCertSignTest(client); test.runAllTest(); }
/// <summary> /// 扫码合同相关API /// </summary> /// <param name="client"></param> static void checkScanContract(SignClient client) { ScanContractTest test = new ScanContractTest(client); test.runAllTest(); }
public SignTest(SignClient signClient) { this.testName = "签章"; this.client = signClient; }
public SignCheckTest(SignClient signClient) { this.testName = "验签"; this.client = signClient; }
public AuthTest(SignClient signClient) { this.testName = "认证"; this.client = signClient; }
public SealTest(SignClient signClient) { this.testName = "印章"; this.client = signClient; }
public EventCertScanContractTest(SignClient signClient) { this.testName = "事件证书-扫码合同"; this.client = signClient; }
public CertTest(SignClient signClient) { this.testName = "证书"; this.client = signClient; }
public TemplateTest(SignClient signClient) { this.testName = "模板"; this.client = signClient; }
/// <summary> /// 模板相关API /// </summary> /// <param name="client"></param> static void checkTemplate(SignClient client) { TemplateTest test = new TemplateTest(client); test.runAllTest(); }
/// <summary> /// 事件证书-扫码合同相关API /// </summary> /// <param name="client"></param> static void checkEventCertScanContract(SignClient client) { EventCertScanContractTest test = new EventCertScanContractTest(client); test.runAllTest(); }
public SmsTest(SignClient signClient) { this.testName = "短信"; this.client = signClient; }
/// <summary> /// 短信相关API /// </summary> /// <param name="client"></param> static void checkSms(SignClient client) { SmsTest test = new SmsTest(client); test.runAllTest(); }
public ScanContractTest(SignClient signClient) { this.testName = "扫码合同"; this.client = signClient; }
/// <summary> /// 验签相关API /// </summary> /// <param name="client"></param> static void checkSignCheck(SignClient client) { SignCheckTest test = new SignCheckTest(client); test.runAllTest(); }
public EventCertSignTest(SignClient signClient) { this.testName = "事件证书-签章"; this.client = signClient; }
/// <summary> /// 个人用户相关API /// </summary> /// <param name="client"></param> static void checkPersonal(SignClient client) { PersonalTest test = new PersonalTest(client); test.runAllTest(); }
public PersonalTest(SignClient signClient) { this.testName = "个人用户"; this.client = signClient; }