Exemple #1
0
        public void PrintTest()
        {
            var postID = "TestPostID";

            var post = new Post();

            post.ID = postID;


            _postRepositoryMock.Expect(r => r.Get(postID)).Return(post);


            var result = TestedController.Print(postID);


            VerifyViewResult(result, "Print", typeof(Post), post);
        }