public void Validate(ITestRailApiCache cache)
 {
     if (!string.IsNullOrEmpty(Priority) &&
         !cache.Priorities.Keys.Contains(Priority))
     {
         throw new TestRailClientException($"Invalid priority, \"{Priority}\", was specified in the case filter for TestRailClient.");
     }
 }
        public bool Filter(TestRailCase @case, ITestRailApiCache cache)
        {
            var priorityFilter = cache.Priorities[Priority];

            return((@case.Priority?.Priority ?? int.MaxValue) >= (priorityFilter?.Priority ?? 0));
        }