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); } } }
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); } } }