namespace Deltares.Standard.Specifications { public class NotEqualSpecification : ValueBoundSpecification { public NotEqualSpecification(string attributeName, TValue attributeValue) : base(attributeName, attributeValue) { } /// /// Determines whether the candidate satisfies the specification. /// /// The candidate to test. /// /// true if the candidate satisfies the specification otherwise, false. /// public override bool IsSatisfiedBy(TCandidate candidate) { TValue actual = this.GetCandidateTValue(candidate); return !(actual.Equals(this.AttributeValue)); } } }