Exemplo n.º 1
0
 public void GetDataByListIDTest()
 {
     try
     {
         var context  = AkmiiContext.GetAkmiiContext(Util.DomainUrl, Util.Secret);
         var response = context.Repository.GetListDefByListIDAsync(41, 1168816360516620288).Result;
         var count    = response.Data;
     }
     catch (Exception ex)
     {
     }
     Assert.IsTrue(true);
 }
Exemplo n.º 2
0
 public void TestAddFileToDoc()
 {
     try
     {
         var    context = AkmiiContext.GetAkmiiContext(Util.DomainUrl, Util.Secret);
         var    path    = @"E:\Workspace\xxxxxx.pptx";
         string code    = "flowcraft-file";
         var    result  = context.Repository.UploadFileToDocAsync(41, code, path).Result;
     }
     catch (Exception ex)
     {
     }
     Assert.IsTrue(true);
 }
Exemplo n.º 3
0
 public void UserInfoSearch()
 {
     try
     {
         var context  = AkmiiContext.GetAkmiiContext(Util.DomainUrl, Util.Secret);
         var response = context.Repository.UserInfoSearchAsync(new UserInfoSearchRequest {
             Status = (int)UserStatusEnum.Enabled
         }).Result;
         var count = response.Data;
     }
     catch (Exception ex)
     {
     }
     Assert.IsTrue(true);
 }
Exemplo n.º 4
0
 public void UserInfoGetByEmail()
 {
     try
     {
         var context  = AkmiiContext.GetAkmiiContext(Util.DomainUrl, Util.Secret);
         var response = context.Repository.UserInfoGetByEmailAsync("*****@*****.**").Result;
         //895927078568988673 ,001
         response = context.Repository.UserInfoGetByAccountIDAsync(895927078568988673).Result;
         response = context.Repository.UserInfoGetByEmployeeNoAsync("001").Result;
         response = context.Repository.UserInfoGetByspAccountAsync("*****@*****.**").Result;
     }
     catch (Exception ex)
     {
     }
     Assert.IsTrue(true);
 }
 public void GetDataByListIDTest()
 {
     try
     {
         var context  = AkmiiContext.GetAkmiiContext(Util.DomainUrl, Util.Secret);
         var response = context.Repository.SelectByListIDAsync(new CustomDataGetListRequest
         {
             AppID  = 41,
             ListID = 1153194374738350080
         }).Result;
         var count = response.Data;
     }
     catch (Exception ex)
     {
     }
     Assert.IsTrue(true);
 }
 public void ListDataRemoveTest()
 {
     try
     {
         var context  = AkmiiContext.GetAkmiiContext(Util.DomainUrl, Util.Secret);
         var response = context.Repository.RemoveByIDAsync(new CustomDataRemvoeRequest
         {
             AppID      = 41,
             ListID     = 1006831681275039744,
             ListDataID = 1034648312172646400
         }).Result;
         var count = response.Data;
     }
     catch (Exception ex)
     {
     }
     Assert.IsTrue(true);
 }