public ActionResult Post(ForumInputModel model)
        {
            if (!this.ModelState.IsValid)
            {
                return this.View(model);
            }

            int id = this.forumService.Create(model.Title, model.Content, model.CategoryId, this.UserId);

            return this.RedirectToAction("Details", new { id = id });
        }
        public void ShouldMapToPostANewForumPostWithCorrectData()
        {
            const string Url = "/Public/Forum/Post";
            const string ForumPostTitle = "This title is for testing purposes";
            const string ForumPostContent = "Test content";
            const int ForumCategoryId = 3;

            var model = new ForumInputModel()
            {
                Title = ForumPostTitle,
                CategoryId = ForumCategoryId,
                Content = ForumPostContent
            };

            this.routeCollection.ShouldMap(Url)
                .WithFormUrlBody(
                    $"Title={ ForumPostTitle }&Content={ ForumPostContent }&CategoryId={ ForumCategoryId }")
                .To<ForumController>(c => c.Post(model));
        }