public void SetUp()
        {
            mappingInfo = MockRepository.GenerateStub<IFieldMappingInfoProvider>();

            transformer = new QueryModelTranslator(new Context(new RAMDirectory(), new WhitespaceAnalyzer(), Version.LUCENE_29, null, new object()), mappingInfo);

            numericMappingInfo = MockRepository.GenerateStub<IFieldMappingInfo>();
            numericMappingInfo.Stub(i => i.IsNumericField).Return(true);
            numericMappingInfo.Stub(i => i.SortFieldType).Return(SortField.LONG);
            
            nonNumericMappingInfo = MockRepository.GenerateStub<IFieldMappingInfo>();
            nonNumericMappingInfo.Stub(i => i.IsNumericField).Return(false);
            nonNumericMappingInfo.Stub(i => i.SortFieldType).Return(SortField.STRING);
        }
 public void SetUp()
 {
     mappingProvider = MockRepository.GenerateStub<IFieldMappingInfoProvider>();
     context = new Context(new RAMDirectory(), new object());
     transformer = new QueryModelTranslator(mappingProvider, context);
 }
        public void SetUp()
        {
            mappingProvider = MockRepository.GenerateStub<IFieldMappingInfoProvider>();

            transformer = new QueryModelTranslator(mappingProvider);
        }