Beispiel #1
0
 public void Test_IsSecurityQueryEntity_NullEntity()
 {
     Assert.That(() => SecurityQueryCacheInvalidatorHelper.IsSecurityQueryEntity(null),
                 Throws.TypeOf <ArgumentNullException>().And.Property("ParamName").EqualTo("entity"));
 }
Beispiel #2
0
 public void Test_IsSecurityQueryEntity(IEntity entity, bool expectedResult)
 {
     Assert.That(SecurityQueryCacheInvalidatorHelper.IsSecurityQueryEntity(entity),
                 Is.EqualTo(expectedResult));
 }
Beispiel #3
0
 public void Test_IsSecurityQueryRelationship(string alias, bool expectedResult)
 {
     Assert.That(SecurityQueryCacheInvalidatorHelper.IsSecurityQueryRelationship(Entity.Get(alias).Id),
                 Is.EqualTo(expectedResult));
 }