Esempio n. 1
0
        public GenericRepository(IUnitOfWork unitOfWork
                                 , ISpecificationLocator specificationLocator)
        {
            this.EnsureNotNull(specificationLocator);
            this.EnsureNotNull(unitOfWork);

            this.SpecificationLocator = specificationLocator;
            this.UnitOfWork           = unitOfWork;
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 public CustomerRepository(IUnitOfWork unitOfWork, ISpecificationLocator specificationLocator)
     : base(unitOfWork, specificationLocator)
 {
 }
Esempio n. 3
0
 public Concordion(ISpecificationLocator specificationLocator, ISpecificationReader specificationReader, IEvaluatorFactory evaluatorFactory)
 {
     SpecificationLocator = specificationLocator;
     SpecificationReader = specificationReader;
     EvaluatorFactory = evaluatorFactory;
 }
 public IConcordionExtender WithSpecificationLocator(ISpecificationLocator specificationLocator)
 {
     this.SpecificationLocator = specificationLocator;
     return this;
 }
Esempio n. 5
0
 public Concordion(ISpecificationLocator specificationLocator, ISpecificationReader specificationReader, IEvaluatorFactory evaluatorFactory)
 {
     SpecificationLocator = specificationLocator;
     SpecificationReader  = specificationReader;
     EvaluatorFactory     = evaluatorFactory;
 }
Esempio n. 6
0
 public IConcordionExtender WithSpecificationLocator(ISpecificationLocator specificationLocator)
 {
     this.SpecificationLocator = specificationLocator;
     return(this);
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 public LinqToSqlRepository(IUnitOfWork unitOfWork, ISpecificationLocator specificationLocator)
     : base(unitOfWork, specificationLocator)
 {
 }