Skip to content

Commit

Permalink
fix: add virtual indicator for ProvideItems method
Browse files Browse the repository at this point in the history
  • Loading branch information
sandre58 committed May 24, 2024
1 parent d4e3802 commit 0c7a263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MyNet.Utilities/Providers/ItemsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public class ItemsProvider<T> : IItemsProvider<T>

public ItemsProvider(IEnumerable<T> items) => _items = items;

public IEnumerable<T> ProvideItems() => _items;
public virtual IEnumerable<T> ProvideItems() => _items;
}
}
2 changes: 1 addition & 1 deletion src/MyNet.Utilities/Providers/PredicateItemsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public PredicateItemsProvider(IItemsProvider<T> provider, Func<T, bool> predicat
_predicate = predicate;
}

public IEnumerable<T> ProvideItems() => _itemsProvider.ProvideItems().Where(_predicate);
public virtual IEnumerable<T> ProvideItems() => _itemsProvider.ProvideItems().Where(_predicate);
}
}

0 comments on commit 0c7a263

Please sign in to comment.