public BusinessLogicTests() { _blogPostServMock = new BlogPostServies(service.Object); _post = new BlogPost() { PostID = 10, Title = "Blog-Post-1", Description = "Blog-Post-1-Description", PostedDate = DateTime.Now }; _commnet = new Comments() { CommId = 10, CommentMsg = "Blog-Post-1-Commnet", CommentedDate = DateTime.Now, PostID = 1 }; }
public ExceptionalTest() { _blogPostServMock = new BlogPostServies(service.Object); _post = new BlogPost() { PostID = 10, Title = "Blog-Post-1", Description = "Blog-Post-1-Description", PostedDate = DateTime.Now }; _commnet = new Comments() { CommId = 10, CommentMsg = "Blog-Post-1-Commnet", CommentedDate = DateTime.Now, PostID = 10 }; blogPostServMock = new Mock <IBlogPostServies>(); blogController = new BlogController(blogPostServMock.Object); }
public BlogController(IBlogPostServies blogPostServ) { _blogPostServ = blogPostServ; }