public void Parameter_CallbackUrl_CreatesCorrectUriParameters() { var request = new RegisterNotificationRequest() { CallbackUri = new Uri("http://www.google.com/callmeback") }; var parameters = request.GetUriPathParameters(); Assert.That(parameters["url"], Is.EqualTo("http://www.google.com/callmeback")); }
public void Parameter_AlertType_CreatesCorrectUriParameters() { var request = new RegisterNotificationRequest() { AlertType = 11 }; var parameters = request.GetUriPathParameters(); Assert.That(parameters["type"], Is.EqualTo(11)); }
public void Parameter_ApplicationId_CreatesCorrectUriParameters() { var request = new RegisterNotificationRequest() { ApplicationId = "my.first.application" }; var parameters = request.GetUriPathParameters(); Assert.That(parameters["appid"], Is.EqualTo("my.first.application")); }