/// <summary> /// Get if this policy allows all traffic. /// </summary> /// <param name="policy">policy.</param> /// <returns>if it is an allow-all policy.</returns> public static bool GetAllowAll(this Zen <Policy> policy) { var labelKeys = policy.GetAllowKeys().Length(); var nsKeys = policy.GetAllowNSKeys().Length(); var denyAll = policy.GetDenyAll(); return(labelKeys.EqualToNumber(0) && nsKeys.EqualToNumber(0) && denyAll.Equals(False())); }