public void Should_Fail_When_URL_Is_NULL() { HttpRequestPlugin plugin = new HttpRequestPlugin(); plugin.Execute_URL = null; plugin.ExecuteData = "?clientSettingID=1&repositoryID=1"; plugin.ExecuteFailed += delegate(object sender, ObjectErrorEventArgs<IPlugin> e) { throw e.Exception; }; plugin.BeginExecute(); }
public void Should_Combine_URL_And_Data2() { HttpRequestPlugin plugin = new HttpRequestPlugin(); plugin.Execute_URL = "http://web.server00.geckon.com/portal/api/portalservice.svc/Session_Start?"; plugin.ExecuteData = "?clientSettingID=1&repositoryID=1"; plugin.ExecuteFailed += delegate(object sender, ObjectErrorEventArgs<IPlugin> e) { throw e.Exception; }; plugin.BeginExecute(); }
public void Should_Fail_On_Invalid_Request() { HttpRequestPlugin plugin = new HttpRequestPlugin(); plugin.Execute_URL = "http://web.server00.geckon.com/portal/api/portalservice.svc/INVALID"; plugin.ExecuteData = ""; plugin.ExecuteFailed += delegate(object sender, ObjectErrorEventArgs<IPlugin> e) { throw e.Exception; }; plugin.BeginExecute(); }
public void Should_Send_If_Data_Is_NULL() { HttpRequestPlugin plugin = new HttpRequestPlugin(); plugin.Execute_URL = "http://web.server00.geckon.com/portal/api/portalservice.svc/Session_Start"; plugin.ExecuteData = null; plugin.ExecuteFailed += delegate(object sender, ObjectErrorEventArgs<IPlugin> e) { throw e.Exception; }; plugin.BeginExecute(); }