Esempio n. 1
0
        public void Setup()
        {
            var settings = new MongoDatabaseSettings();

            settings.ApplyDefaultValues(new MongoClientSettings());
            _operationExecutor = new MockOperationExecutor();
            _subject           = new MongoDatabaseImpl(
                new DatabaseNamespace("foo"),
                settings,
                Substitute.For <ICluster>(),
                _operationExecutor);
        }
Esempio n. 2
0
        public MongoDatabaseImplTests()
        {
            var settings = new MongoDatabaseSettings();

            settings.ApplyDefaultValues(new MongoClientSettings());
            _operationExecutor = new MockOperationExecutor();
            _subject           = new MongoDatabaseImpl(
                new Mock <IMongoClient>().Object,
                new DatabaseNamespace("foo"),
                settings,
                new Mock <ICluster>().Object,
                _operationExecutor);
        }
Esempio n. 3
0
 public MongoDatabaseImplTests()
 {
     _operationExecutor        = new MockOperationExecutor();
     _subject                  = CreateSubject(_operationExecutor);
     _operationExecutor.Client = _subject.Client;
 }