Exemple #1
0
        public Task <IReadOnlyList <string> > GetCollectionNamesAsync(TimeSpan?timeout, CancellationToken cancellationToken)
        {
            var messageEncoderSettings = GetMessageEncoderSettings();
            var operation = new ListCollectionNamesOperation(_databaseNamespace, messageEncoderSettings);

            return(ExecuteReadOperation(operation, timeout, cancellationToken));
        }
Exemple #2
0
        protected override void Given()
        {
            _subject = new ListCollectionNamesOperation(DatabaseNamespace, MessageEncoderSettings);

            // make sure there is at least one collection
            Insert(new[] { new BsonDocument("x", 1) }, MessageEncoderSettings);
        }
        protected override void Given()
        {
            _subject = new ListCollectionNamesOperation(DatabaseNamespace, MessageEncoderSettings);

            // make sure there is at least one collection
            Insert(new[] { new BsonDocument("x", 1) }, MessageEncoderSettings);
        }
 protected override void Given()
 {
     _subject = new ListCollectionNamesOperation(new DatabaseNamespace("asdlfkjklfkljlwef"), MessageEncoderSettings);
 }
 protected override void Given()
 {
     _subject = new ListCollectionNamesOperation(new DatabaseNamespace("asdlfkjklfkljlwef"), MessageEncoderSettings);
 }