public void add_criteria_criterion_with_successfully()
        {
            var criterion = new Criterion();
            var nameEqualsSpecification = new PatientNameEqualsSpecification();
            nameEqualsSpecification.AddCriteria(new Patient() { Name = "test" }, criterion);

            Assert.AreEqual(criterion.criterions.Count(), 1);
        }
        public static void CreateCriteria(IPatient patient, ICriteria criteria)
        {
            var nameEqualsSpecification = new PatientNameEqualsSpecification();
            var dateBirthayEqualsSpecification = new PatientDateBirthdayEqualsSpecification();
            var identityEquals = new PatientIdentityEqualsSpecification();

            nameEqualsSpecification
                .And(dateBirthayEqualsSpecification)
                .And(identityEquals)
                .AddCriteria(patient, criteria);
        }