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> /// 原始调用Paas Api接口 /// </summary> /// <param name="paasClient"></param> static void checkPaasApi(PaasClient paasClient) { PaasTest test = new PaasTest(paasClient); test.runAllTest(); }
public PaasTest(PaasClient paasClient) { testName = "Paas-Api接口"; client = paasClient; }