Adf.Test.TestProvider.IsActionPresent C# (CSharp) Method

IsActionPresent() private method

private IsActionPresent ( TestItemType type, TestAction action ) : bool
type Adf.Core.Test.TestItemType
action Adf.Core.Test.TestAction
return bool
        private bool IsActionPresent(TestItemType type, TestAction action)
        {
            return _items
                       .Where(item => item.Type == type)
                       .Where(item => item.Action == action)
                       .Count() > 0;
        }