Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
BoasE committed Feb 15, 2017
1 parent 43493fc commit 6a5b653
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/BE.FluentGuard/EnumerableValidationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@

namespace BE.FluentGuard
{
/// <summary>
/// Offers methods for asserting Enumerable objects
/// </summary>
public static class EnumerableValidationExtensions
{
/// <summary>
/// Asserts that the collection has items
/// </summary>
/// <typeparam name="T">Type of the items in the collection</typeparam>
/// <param name="rule">the validation rule</param>
/// <exception cref="ArgumentException">If the collection has no items</exception>
/// <returns></returns>
public static ValidationRule<ICollection<T>> HasItems<T>(this ValidationRule<ICollection<T>> rule)
{
if (!rule.Value.HasAny())
Expand Down

0 comments on commit 6a5b653

Please sign in to comment.