Beispiel #1
0
        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());
        }
Beispiel #2
0
        public void GetCreditCountTest()
        {
            var classUnderTest = new AqlSmsService();

            var result = classUnderTest.GetCreditCount();
        }