BlogSharp.Core.Impl.Tests.Plugins.Pingback.PingbackServiceTests.SetUp C# (CSharp) Method

SetUp() private method

private SetUp ( ) : void
return void
        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);
        }