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

Can_handle_new_post() private method

private Can_handle_new_post ( ) : void
return void
        public void Can_handle_new_post()
        {
            var post = new Post {Content = "this web site is cool: http://google.com"};
            httpClient.Expect(x => x.DownloadString("http://google.com"))
                .Return("<link rel=\"pingback\" href=\"http://localhost:2011/pingback.rem\"/>");

            pingbackService.HandleNewPost(new PostAddedEventArgs(null,post));

            httpClient.AssertWasCalled(x => x.DownloadString(Arg<string>.Is.Anything));
            Assert.That(FakePingbackService.SourceUri,Is.Not.Null.Or.Not.Empty);
            Assert.That(FakePingbackService.TargetUri, Is.Not.Null.Or.Not.Empty);
        }