public TencentSmsTests() { var configuration = new ConfigurationBuilder().SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", false, true) .Build(); _config = configuration.GetSection("SMS:TencentCloud").Get <TencentSmsConfig>(); _client = new TencentSmsClient(_config); }
public TencentSmsService(TencentSmsClient tencentSmsClient) { _tencentSmsClient = tencentSmsClient; }
public TencentSmsClientTest() { _client = new TencentSmsClient(cred, "ap-guangzhou", clientProfile); }