Ejemplo n.º 1
0
        protected override bool Equals(AbstractSpecification <TCandidate> other)
        {
            NotSpecification <TCandidate> s = other as NotSpecification <TCandidate>;

            if (null == s)
            {
                return(false);
            }
            return(Negated.Equals(s.Negated));
        }
Ejemplo n.º 2
0
        protected override bool Equals(AbstractSpecification <TCandidate> other)
        {
            AndSpecification <TCandidate> specification = other as AndSpecification <TCandidate>;

            if (null == specification)
            {
                return(false);
            }
            return(this.First.Equals(specification.First) && this.Second.Equals(specification.Second));
        }
Ejemplo n.º 3
0
        public bool Equals(ISpecification <TCandidate> other)
        {
            AbstractSpecification <TCandidate> candidate = other as AbstractSpecification <TCandidate>;

            if (object.ReferenceEquals(other, null))
            {
                return(false);
            }
            if (object.ReferenceEquals(this, other))
            {
                return(true);
            }
            return(Equals(candidate));
        }
Ejemplo n.º 4
0
 protected abstract bool Equals(AbstractSpecification <TCandidate> other);