public void DeleteNotFound()
        {
            var mock       = new Mock <IBlogsService>();
            var controller = new BlogCategoriesController(mock.Object);

            controller.WithCallTo(c => c.Delete(-1))
            .ShouldGiveHttpStatus(HttpStatusCode.NotFound);
        }
        public void AddGetMethod()
        {
            var mock       = new Mock <IBlogsService>();
            var controller = new BlogCategoriesController(mock.Object);

            controller.WithCallTo(c => c.Add())
            .ShouldRenderDefaultView();
        }
        public void DeleteNullParameterBadRequest()
        {
            var mock       = new Mock <IBlogsService>();
            var controller = new BlogCategoriesController(mock.Object);

            controller.WithCallTo(c => c.Delete(null))
            .ShouldGiveHttpStatus(HttpStatusCode.BadRequest);
        }
        public void AddPostMethod()
        {
            var mock       = new Mock <IBlogsService>();
            var controller = new BlogCategoriesController(mock.Object);


            controller.WithCallTo(c => c.Add(new BlogsCategoriesAdminVm
            {
                Title = "Test Category"
            }))
            .ShouldRedirectTo(c => c.All);
        }