public static SmsCreditCountResponse GetAqlCreditCount() { var provider = ConfigurationManager.AppSettings["SMSProvider"]; if (provider == "Curl") { var curlService = new CurlSmsService(); return(curlService.GetCreditCount()); } var service = new AqlSmsService(); return(service.GetCreditCount()); }
public void GetCreditCountTest() { var classUnderTest = new AqlSmsService(); var result = classUnderTest.GetCreditCount(); }