protected ResolvingExpressionVisitor(
            IMappingResolver resolver,
            IMappingResolutionStage stage,
            IMappingResolutionContext context,
            UniqueIdentifierGenerator generator,
            IEntityIdentityResolver entityIdentityResolver,
            ICompoundExpressionComparisonSplitter compoundComparisonSplitter,
            INamedExpressionCombiner namedExpressionCombiner,
            IGroupAggregateSimplifier groupAggregateSimplifier,
            bool resolveEntityRefMemberExpressions)
        {
            ArgumentUtility.CheckNotNull("resolver", resolver);
            ArgumentUtility.CheckNotNull("stage", stage);
            ArgumentUtility.CheckNotNull("context", context);
            ArgumentUtility.CheckNotNull("generator", generator);
            ArgumentUtility.CheckNotNull("entityIdentityResolver", entityIdentityResolver);
            ArgumentUtility.CheckNotNull("compoundComparisonSplitter", compoundComparisonSplitter);
            ArgumentUtility.CheckNotNull("namedExpressionCombiner", namedExpressionCombiner);
            ArgumentUtility.CheckNotNull("groupAggregateSimplifier", groupAggregateSimplifier);

            _resolver  = resolver;
            _stage     = stage;
            _context   = context;
            _generator = generator;
            _entityIdentityResolver     = entityIdentityResolver;
            _compoundComparisonSplitter = compoundComparisonSplitter;
            _namedExpressionCombiner    = namedExpressionCombiner;
            _groupAggregateSimplifier   = groupAggregateSimplifier;

            _resolveEntityRefMemberExpressions = resolveEntityRefMemberExpressions;
        }
Exemple #2
0
 public void SetUp()
 {
     _stageMock                = MockRepository.GenerateStrictMock <IMappingResolutionStage>();
     _resolverMock             = MockRepository.GenerateMock <IMappingResolver>();
     _mappingResolutionContext = new MappingResolutionContext();
     _generator                = new UniqueIdentifierGenerator();
     _groupAggregateSimplifier = MockRepository.GenerateStrictMock <IGroupAggregateSimplifier> ();
 }
 public void SetUp ()
 {
   _stageMock = MockRepository.GenerateStrictMock<IMappingResolutionStage>();
   _resolverMock = MockRepository.GenerateMock<IMappingResolver>();
   _mappingResolutionContext = new MappingResolutionContext();
   _generator = new UniqueIdentifierGenerator();
   _groupAggregateSimplifier = MockRepository.GenerateStrictMock<IGroupAggregateSimplifier> ();
 }
    public void SetUp ()
    {
      _stageMock = MockRepository.GenerateStrictMock<IMappingResolutionStage>();
      _resolverMock = MockRepository.GenerateStrictMock<IMappingResolver>();
      _sqlTable = SqlStatementModelObjectMother.CreateSqlTable_WithResolvedTableInfo (typeof (Cook));
      _mappingResolutionContext = new MappingResolutionContext();
      _generator = new UniqueIdentifierGenerator();
      _entityIdentityResolverMock = MockRepository.GenerateStrictMock<IEntityIdentityResolver> ();
      _compoundComparisonSplitterMock = MockRepository.GenerateStrictMock<ICompoundExpressionComparisonSplitter> ();
      _namedExpressionCombinerMock = MockRepository.GenerateStrictMock<INamedExpressionCombiner>();
      _groupAggregateSimplifierMock = MockRepository.GenerateStrictMock<IGroupAggregateSimplifier>();

      _visitor = CreateVisitor (true);
    }
        public void SetUp()
        {
            _stageMock                      = MockRepository.GenerateStrictMock <IMappingResolutionStage>();
            _resolverMock                   = MockRepository.GenerateStrictMock <IMappingResolver>();
            _sqlTable                       = SqlStatementModelObjectMother.CreateSqlTable_WithResolvedTableInfo(typeof(Cook));
            _mappingResolutionContext       = new MappingResolutionContext();
            _generator                      = new UniqueIdentifierGenerator();
            _entityIdentityResolverMock     = MockRepository.GenerateStrictMock <IEntityIdentityResolver> ();
            _compoundComparisonSplitterMock = MockRepository.GenerateStrictMock <ICompoundExpressionComparisonSplitter> ();
            _namedExpressionCombinerMock    = MockRepository.GenerateStrictMock <INamedExpressionCombiner>();
            _groupAggregateSimplifierMock   = MockRepository.GenerateStrictMock <IGroupAggregateSimplifier>();

            _visitor = CreateVisitor(true);
        }
Exemple #6
0
 protected ResolvingSelectExpressionVisitor(
     IMappingResolver resolver,
     IMappingResolutionStage stage,
     IMappingResolutionContext context,
     UniqueIdentifierGenerator generator,
     IEntityIdentityResolver entityIdentityResolver,
     ICompoundExpressionComparisonSplitter comparisonSplitter,
     INamedExpressionCombiner namedExpressionCombiner,
     IGroupAggregateSimplifier groupAggregateSimplifier,
     bool resolveEntityRefMemberExpressions,
     SqlStatementBuilder sqlStatementBuilder)
     : base(
         resolver,
         stage,
         context,
         generator,
         entityIdentityResolver,
         comparisonSplitter,
         namedExpressionCombiner,
         groupAggregateSimplifier,
         resolveEntityRefMemberExpressions)
 {
     _sqlStatementBuilder = sqlStatementBuilder;
 }
 protected ResolvingSelectExpressionVisitor (
     IMappingResolver resolver,
     IMappingResolutionStage stage,
     IMappingResolutionContext context,
     UniqueIdentifierGenerator generator, 
     IEntityIdentityResolver entityIdentityResolver,
     ICompoundExpressionComparisonSplitter comparisonSplitter,
     INamedExpressionCombiner namedExpressionCombiner,
     IGroupAggregateSimplifier groupAggregateSimplifier,
     bool resolveEntityRefMemberExpressions,
     SqlStatementBuilder sqlStatementBuilder)
     : base (
         resolver,
         stage,
         context,
         generator,
         entityIdentityResolver,
         comparisonSplitter,
         namedExpressionCombiner,
         groupAggregateSimplifier,
         resolveEntityRefMemberExpressions)
 {
   _sqlStatementBuilder = sqlStatementBuilder;
 }
    protected ResolvingExpressionVisitor (
        IMappingResolver resolver,
        IMappingResolutionStage stage,
        IMappingResolutionContext context,
        UniqueIdentifierGenerator generator,
        IEntityIdentityResolver entityIdentityResolver,
        ICompoundExpressionComparisonSplitter compoundComparisonSplitter,
        INamedExpressionCombiner namedExpressionCombiner,
        IGroupAggregateSimplifier groupAggregateSimplifier,
        bool resolveEntityRefMemberExpressions)
    {
      ArgumentUtility.CheckNotNull ("resolver", resolver);
      ArgumentUtility.CheckNotNull ("stage", stage);
      ArgumentUtility.CheckNotNull ("context", context);
      ArgumentUtility.CheckNotNull ("generator", generator);
      ArgumentUtility.CheckNotNull ("entityIdentityResolver", entityIdentityResolver);
      ArgumentUtility.CheckNotNull ("compoundComparisonSplitter", compoundComparisonSplitter);
      ArgumentUtility.CheckNotNull ("namedExpressionCombiner", namedExpressionCombiner);
      ArgumentUtility.CheckNotNull ("groupAggregateSimplifier", groupAggregateSimplifier);
      
      _resolver = resolver;
      _stage = stage;
      _context = context;
      _generator = generator;
      _entityIdentityResolver = entityIdentityResolver;
      _compoundComparisonSplitter = compoundComparisonSplitter;
      _namedExpressionCombiner = namedExpressionCombiner;
      _groupAggregateSimplifier = groupAggregateSimplifier;

      _resolveEntityRefMemberExpressions = resolveEntityRefMemberExpressions;
    }