namespace Deltares.Standard.Specifications
{
///
/// Checks if the candidate is not empty null or contians only whitespace
///
public class NotEmptySpecification : SpecificationBase
{
public NotEmptySpecification()
{
Name = "Not empty specification";
Description = "The candidate should have a value. It is not allowed to be null, empty or a string that contains white spaces only";
}
public override bool IsSatisfiedBy(string candidate)
{
return !string.IsNullOrWhiteSpace(candidate);
}
}
}