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; }
/// <summary> /// 初始化一个新的通用服务实例。 /// </summary> /// <param name="accountModel"></param> public CommonService(AccountModel accountModel) { _accountModel = accountModel; _accessTokenLazy = new Lazy<AccessTokenModel>(InternalGetAccessToken); }