public void Test_IsSecurityQueryEntity(IEntity entity, bool expectedResult) { Assert.That(SecurityQueryCacheInvalidatorHelper.IsSecurityQueryEntity(entity), Is.EqualTo(expectedResult)); }
public void Test_IsSecurityQueryEntity_NullEntity() { Assert.That(() => SecurityQueryCacheInvalidatorHelper.IsSecurityQueryEntity(null), Throws.TypeOf <ArgumentNullException>().And.Property("ParamName").EqualTo("entity")); }