Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions PusherRESTDotNet.Tests/AcceptanceTests/PusherProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ public void CanTriggerPush()
_defaultProvider.Trigger(request);
}

[Test]
[Explicit("Set your credentials in app.config for this test to pass")]
public void CanSendPercentageSignInEventMessage()
{
SetupDefaultProvider();
var request = new TestPusherRequest("test_channel", "my_event", @"{""some"":""data %""}");

_defaultProvider.Trigger(request);
}

[Test]
[Explicit("Set your credentials in app.config for this test to pass")]
public void CanTriggerPushWithAnonymousObject()
Expand Down
1 change: 1 addition & 0 deletions PusherRESTDotNet/PusherProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public void Trigger(PusherRequest request)
client.Proxy = _webProxy;
}
client.Encoding = Encoding.UTF8;
client.Headers.Add("Content-Type", "application/json");
client.UploadString(requestUrl, request.JsonData);
}
}
Expand Down