Exemplo n.º 1
0
        public void CanMatchSingleByCompoundOrSpec()
        {
            var spec   = new PersonByFirstnameOrLastnameSpecification("Johnny", "Bohlen");
            var result = spec.IsSatisfiedBy(_parent);

            Assert.IsTrue(result);
        }
Exemplo n.º 2
0
        public void CanMatchSingleByCompoundAndSpec()
        {
            var spec   = new PersonByFirstnameOrLastnameSpecification("Susan", "UniqueLastname");
            var result = spec.IsSatisfiedBy(_alsoNotParent);

            Assert.IsTrue(result);
        }