Exemple #1
0
 public ApiTestBase()
 {
     AccountModel = new AccountModel
     {
         AppId = AppId,
         AppSecret = AppSecret,
         GetAccessToken = GetAccessToken
     };
     CommonService = new CommonService(AccountModel);
 }
 /// <summary>
 /// 初始化一个新的通用服务实例。
 /// </summary>
 /// <param name="accountModel"></param>
 public CommonService(AccountModel accountModel)
 {
     _accountModel = accountModel;
 }
Exemple #3
0
 /// <summary>
 /// 初始化一个新的通用服务实例。
 /// </summary>
 /// <param name="accountModel"></param>
 public CommonService(AccountModel accountModel)
 {
     _accountModel = accountModel;
     _accessTokenLazy = new Lazy<AccessTokenModel>(InternalGetAccessToken);
 }