BlogSharp.Web.Tests.Controllers.PostControllerTests.Can_insert_post_comment C# (CSharp) Method

Can_insert_post_comment() private method

private Can_insert_post_comment ( ) : void
return void
        public void Can_insert_post_comment()
        {
            var postComment = new Feedback();
            postService.Expect(x => x.GetPostById(blog, 1))
                .Return(new Post {FriendlyTitle = "m"});
            var actionResult = controller.AddComment(1, postComment);
            Assert.That(((ViewResult) actionResult).ViewName == "Read");
            Assert.That(actionResult, Is.Not.Null);
            postService.AssertWasCalled(x => x.AddComment(postComment));
        }