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