Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 印章相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkSeal(SignClient client)
        {
            SealTest test = new SealTest(client);

            test.runAllTest();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 证书相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkCert(SignClient client)
        {
            CertTest test = new CertTest(client);

            test.runAllTest();
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 企业用户相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkCompany(SignClient client)
        {
            CompanyTest test = new CompanyTest(client);

            test.runAllTest();
        }
Ejemplo n.º 5
0
 public CompanyTest(SignClient signClient)
 {
     this.testName = "企业用户";
     this.client   = signClient;
 }
Ejemplo n.º 6
0
        /// <summary>
        /// 认证相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkAuth(SignClient client)
        {
            AuthTest test = new AuthTest(client);

            test.runAllTest();
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 事件证书-签章相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkEventCertSign(SignClient client)
        {
            EventCertSignTest test = new EventCertSignTest(client);

            test.runAllTest();
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 扫码合同相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkScanContract(SignClient client)
        {
            ScanContractTest test = new ScanContractTest(client);

            test.runAllTest();
        }
Ejemplo n.º 9
0
 public SignTest(SignClient signClient)
 {
     this.testName = "签章";
     this.client   = signClient;
 }
Ejemplo n.º 10
0
 public SignCheckTest(SignClient signClient)
 {
     this.testName = "验签";
     this.client   = signClient;
 }
Ejemplo n.º 11
0
 public AuthTest(SignClient signClient)
 {
     this.testName = "认证";
     this.client   = signClient;
 }
Ejemplo n.º 12
0
 public SealTest(SignClient signClient)
 {
     this.testName = "印章";
     this.client   = signClient;
 }
 public EventCertScanContractTest(SignClient signClient)
 {
     this.testName = "事件证书-扫码合同";
     this.client   = signClient;
 }
Ejemplo n.º 14
0
 public CertTest(SignClient signClient)
 {
     this.testName = "证书";
     this.client   = signClient;
 }
Ejemplo n.º 15
0
 public TemplateTest(SignClient signClient)
 {
     this.testName = "模板";
     this.client   = signClient;
 }
Ejemplo n.º 16
0
        /// <summary>
        /// 模板相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkTemplate(SignClient client)
        {
            TemplateTest test = new TemplateTest(client);

            test.runAllTest();
        }
Ejemplo n.º 17
0
        /// <summary>
        /// 事件证书-扫码合同相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkEventCertScanContract(SignClient client)
        {
            EventCertScanContractTest test = new EventCertScanContractTest(client);

            test.runAllTest();
        }
Ejemplo n.º 18
0
 public SmsTest(SignClient signClient)
 {
     this.testName = "短信";
     this.client   = signClient;
 }
Ejemplo n.º 19
0
        /// <summary>
        /// 短信相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkSms(SignClient client)
        {
            SmsTest test = new SmsTest(client);

            test.runAllTest();
        }
Ejemplo n.º 20
0
 public ScanContractTest(SignClient signClient)
 {
     this.testName = "扫码合同";
     this.client   = signClient;
 }
Ejemplo n.º 21
0
        /// <summary>
        /// 验签相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkSignCheck(SignClient client)
        {
            SignCheckTest test = new SignCheckTest(client);

            test.runAllTest();
        }
Ejemplo n.º 22
0
 public EventCertSignTest(SignClient signClient)
 {
     this.testName = "事件证书-签章";
     this.client   = signClient;
 }
Ejemplo n.º 23
0
        /// <summary>
        /// 个人用户相关API
        /// </summary>
        /// <param name="client"></param>
        static void checkPersonal(SignClient client)
        {
            PersonalTest test = new PersonalTest(client);

            test.runAllTest();
        }
Ejemplo n.º 24
0
 public PersonalTest(SignClient signClient)
 {
     this.testName = "个人用户";
     this.client   = signClient;
 }