public void TestPhotoUploadForm() { string jsonRpcCallId = "jsonrpc id 19347819"; Messaging.SendFormRequest request = new Messaging.SendFormRequest(); request.Member = "*****@*****.**"; request.ParentKey = null; request.Flags = 0; request.AlertFlags = 0; request.Branding = "A68EBEAB5C962B271BD236AAE6595E5C353B56A650F98B760026CAFA094DB8D1"; request.Text = "Upload a photo of your member card."; request.Tag = "my message tag19347819"; request.Context = null; PhotoUploadWidget widget = new PhotoUploadWidget(); widget.Camera = true; widget.Gallery = false; widget.Quality = "1000000"; widget.Ratio = "800x600"; request.Form.Widget = widget; request.Form.PositiveButtonCaption = "Next question"; request.Form.NegativeButtonCaption = "Stop poll"; request.Form.NegativeButtonConfirmation = "Do you really want to stop the poll?"; Messaging.SendFormResponse response = this.Api.Send(request, jsonRpcCallId); Assert.IsNotNull(response.Result); }
public void TestSendPhotoUploadForm() { PhotoUploadWidget widget = new PhotoUploadWidget(); widget.Camera = true; widget.Gallery = false; widget.Quality = "1000000"; widget.Ratio = "800x600"; ValidateSendForm("Upload a photo of your member card.", widget); }