예제 #1
0
 public void GetAnonymousComments()
 {
     using (var db = new Voat.Data.Repository())
     {
         var comments = db.GetCommentTree(2, null, null);
         foreach (var c in comments)
         {
             Assert.IsTrue(c.IsAnonymized);
         }
     }
 }
예제 #2
0
        public void GetAnonymousComments()
        {
            var user = TestHelper.SetPrincipal(null);

            using (var db = new Voat.Data.Repository(user))
            {
                var comments = db.GetCommentTree(2, null, null);
                foreach (var c in comments)
                {
                    Assert.IsTrue(c.IsAnonymized);
                }
            }
        }