public void SendMessage_Should_return_true()
        {
            // Arrange
            var accountNumber = string.Empty;
            var fromNumber    = string.Empty;
            var toNumber      = string.Empty;
            var message       = string.Empty;

            // Act
            var result = VodafoneSmsProvider.SendMessage(accountNumber, fromNumber, toNumber, message);

            Assert.True(result);
        }
Example #2
0
        public bool SendMessage(SmsAccountDetials account, string fromNumber, string toNumber, string message)
        {
            bool result = false;

            switch (account.Provider)
            {
            case SmsServiceProvider.Esendex:
                result = EsendexSmsProvider.SendMessage(account.AccountNumber, fromNumber, fromNumber, message);
                break;

            case SmsServiceProvider.Vodafone:
                result = VodafoneSmsProvider.SendMessage(account.AccountNumber, fromNumber, fromNumber, message);
                break;
            }

            return(true);
        }