Exemple #1
0
        public async Task ConfirmCreateBlog_CreateBlog_Ok()
        {
            var user = _controller.SetupUser(1);

            _blogManager.Setup(repo => repo.CreateBlog(new BlogDto()));
            var result = await _controller.ConfirmCreateBlog(new CreateBlogViewModel());

            var viewResult = Assert.IsType <RedirectToActionResult>(result);

            _blogManager.Verify(x => x.CreateBlog(It.IsAny <BlogDto>()));
        }