Skip to content

Commit

Permalink
Rename SMS.SendSMS to SMS.Send
Browse files Browse the repository at this point in the history
  • Loading branch information
smithrobs committed Mar 19, 2016
1 parent a068d67 commit 489b800
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Nexmo.Api.Test.Integration/SmsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class SmsTest
[Test]
public void should_send_sms()
{
var results = SMS.SendSMS(new SMS.SMSRequest
var results = SMS.Send(new SMS.SMSRequest
{
from = "15555551212",
to = "17775551212",
Expand Down
2 changes: 1 addition & 1 deletion Nexmo.Api.Test.Unit/SmsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void should_send_sms()
var resp = new Mock<IWebResponse>();
resp.Setup(e => e.GetResponseStream()).Returns(new MemoryStream(Encoding.UTF8.GetBytes("{\"message-count\": \"1\",\"messages\": [{\"to\": \"17775551212\",\"message-id\": \"02000000A3AF32FA\",\"status\": \"0\",\"remaining-balance\": \"7.55560000\",\"message-price\": \"0.00480000\",\"network\": \"310004\"}]}")));
_request.Setup(e => e.GetResponse()).Returns(resp.Object);
var results = SMS.SendSMS(new SMS.SMSRequest
var results = SMS.Send(new SMS.SMSRequest
{
from = "98975",
to = "17775551212",
Expand Down
2 changes: 1 addition & 1 deletion Nexmo.Api/SMS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public class SMSInbound
public string udh { get; set; }
}

public static SMSResponse SendSMS(SMSRequest request)
public static SMSResponse Send(SMSRequest request)
{
if (string.IsNullOrEmpty(request.from))
{
Expand Down
2 changes: 1 addition & 1 deletion Nexmo.Web.Sample/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public ActionResult Index()
[HttpPost]
public ActionResult Sms(Actions act)
{
return Json(SMS.SendSMS(act.SMS));
return Json(SMS.Send(act.SMS));
}


Expand Down

0 comments on commit 489b800

Please sign in to comment.