public void SetUp()
{
FakePingbackService.SourceUri = "";
FakePingbackService.TargetUri = "";
this.postService = MockRepository.GenerateMock<IPostService>();
this.httpClient = MockRepository.GenerateMock<IHttpClient>();
this.pingbackService = new PingbackService(this.postService, this.httpClient);
IDictionary props = new Hashtable();
props["name"] = "MyHttpChannel";
props["port"] = 2011;
channel = new HttpChannel(props,null,new XmlRpcServerFormatterSinkProvider());
ChannelServices.RegisterChannel(channel, false);
RemotingConfiguration.RegisterWellKnownServiceType(typeof (FakePingbackService),"pingback.rem",WellKnownObjectMode.Singleton);
}