Exemplo n.º 1
0
 public void Setup()
 {
     mModelBuilder        = Substitute.For <IModelBuilder>();
     mSimplifier          = Substitute.For <IAggregateSimplifier>();
     mExpressionFormatter = Substitute.For <IExpressionFormatter>();
     mUnderTest           = new SymbolicSimplificationFacade(mExpressionFormatter, mSimplifier, mModelBuilder);
 }
 public MongoAdapterUpdater(MongoAdapter adapter, IExpressionFormatter expressionFormatter)
 {
     if (adapter == null)
     {
         throw new ArgumentNullException("adapter");
     }
     _adapter             = adapter;
     _expressionFormatter = expressionFormatter;
 }
Exemplo n.º 3
0
 public StringSimplifier(
     ISimplifier simplifier,
     ITokenizer tokenizer,
     IExpressionFormatter formatter,
     IModelBuilder modelBuilder)
 {
     mSimplifier   = simplifier;
     mTokenizer    = tokenizer;
     mFormatter    = formatter;
     mModelBuilder = modelBuilder;
 }
Exemplo n.º 4
0
 public UpdateHelper(DatabaseSchema schema)
 {
     _schema              = schema;
     _commandBuilder      = new CommandBuilder(schema);
     _expressionFormatter = new ExpressionFormatter(_commandBuilder, _schema);
 }
 public MongoAdapterUpdater(MongoAdapter adapter, IExpressionFormatter expressionFormatter)
 {
     if (adapter == null) throw new ArgumentNullException("adapter");
     _adapter = adapter;
     _expressionFormatter = expressionFormatter;
 }
 public MongoAdapterFinder(MongoAdapter mongoAdapter, IExpressionFormatter expressionFormatter)
 {
     _mongoAdapter = mongoAdapter;
     _expressionFormatter = expressionFormatter;
 }
Exemplo n.º 7
0
 public FindHelper(DatabaseSchema schema)
 {
     _schema = schema;
     _commandBuilder = new CommandBuilder(schema.SchemaProvider);
     _expressionFormatter = new ExpressionFormatter(_commandBuilder, _schema);
 }
Exemplo n.º 8
0
 public DeleteHelper(DatabaseSchema schema)
 {
     _schema = schema;
     _commandBuilder = new CommandBuilder();
     _expressionFormatter = new ExpressionFormatter(_commandBuilder, _schema);
 }
Exemplo n.º 9
0
 public MongoAdapter()
 {
     _expressionFormatter = new ExpressionFormatter(this);
 }
Exemplo n.º 10
0
 public AggregationHelper(DatabaseSchema schema)
 {
     _schema              = schema;
     _commandBuilder      = new CommandBuilder(schema.SchemaProvider);
     _expressionFormatter = new ExpressionFormatter(_commandBuilder, _schema);
 }
 public SymbolicSimplificationFacade(IExpressionFormatter expressionFormatter, IAggregateSimplifier simplifier, IModelBuilder modelBuilder)
 {
     mExpressionFormatter = expressionFormatter;
     mSimplifier          = simplifier;
     mModelBuilder        = modelBuilder;
 }
Exemplo n.º 12
0
 public MongoAdapterFinder(MongoAdapter mongoAdapter, IExpressionFormatter expressionFormatter)
 {
     _mongoAdapter        = mongoAdapter;
     _expressionFormatter = expressionFormatter;
 }
Exemplo n.º 13
0
 public Evaluator(IExpressionFormatter formatter)
 {
     this.formatter = formatter;
 }
Exemplo n.º 14
0
 public MongoAdapter()
 {
     _expressionFormatter = new ExpressionFormatter(this);
 }
Exemplo n.º 15
0
 public void SetUp()
 {
     _formatter = new ExpressionFormatter();
 }
Exemplo n.º 16
0
 public Calculator(IParser <T> parser, IExpressionsValidator <T> validator, IExpressionFormatter formatter)
 {
     _validator = validator;
     _parser    = parser;
     _formatter = formatter;
 }