public Task <IReadOnlyList <string> > GetCollectionNamesAsync(TimeSpan?timeout, CancellationToken cancellationToken) { var messageEncoderSettings = GetMessageEncoderSettings(); var operation = new ListCollectionNamesOperation(_databaseNamespace, messageEncoderSettings); return(ExecuteReadOperation(operation, timeout, cancellationToken)); }
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); }