Beispiel #1
0
 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);
 }
Beispiel #3
0
 public BlogController(IBlogPostServies blogPostServ)
 {
     _blogPostServ = blogPostServ;
 }