Пример #1
0
        public void ByRight()
        {
            AuditFilterBase filter = AuditFilters.ByRight(SecurityRight.Allow);

            Assert.IsTrue(filter.CheckFilter(record1), "SecurityRight not included");
            Assert.IsFalse(filter.CheckFilter(record2), "SecurityRight not excluded");
        }
        public void ReadAuditRecordsWithFilterIsNotImplemented()
        {
            var client = new TestClient();

            Assert.Throws <NotImplementedException>(
                () => client.ReadAuditRecords(0, 10, AuditFilters.ByRight(SecurityRight.Allow)));
        }