@@ -83,8 +83,8 @@ public void Settings_should_be_set()
83
83
[ Test ]
84
84
public async Task AggregateAsync_should_execute_the_AggregateOperation_when_out_is_not_specified ( )
85
85
{
86
- var stages = new PipelineStageDefinition < BsonDocument , BsonDocument > [ ]
87
- {
86
+ var stages = new PipelineStageDefinition < BsonDocument , BsonDocument > [ ]
87
+ {
88
88
BsonDocument . Parse ( "{$match: {x: 2}}" )
89
89
} ;
90
90
var options = new AggregateOptions ( )
@@ -115,10 +115,10 @@ public async Task AggregateAsync_should_execute_the_AggregateOperation_when_out_
115
115
[ Test ]
116
116
public async Task AggregateAsync_should_execute_the_AggregateToCollectionOperation_and_the_FindOperation_when_out_is_specified ( )
117
117
{
118
- var stages = new PipelineStageDefinition < BsonDocument , BsonDocument > [ ]
119
- {
120
- BsonDocument . Parse ( "{$match: {x: 2}}" ) ,
121
- BsonDocument . Parse ( "{$out: \" funny\" }" )
118
+ var stages = new PipelineStageDefinition < BsonDocument , BsonDocument > [ ]
119
+ {
120
+ BsonDocument . Parse ( "{$match: {x: 2}}" ) ,
121
+ BsonDocument . Parse ( "{$out: \" funny\" }" )
122
122
} ;
123
123
var options = new AggregateOptions ( )
124
124
{
@@ -171,8 +171,8 @@ public async Task AggregateAsync_should_execute_the_AggregateToCollectionOperati
171
171
[ TestCase ( false ) ]
172
172
public async Task BulkWriteAsync_should_execute_the_BulkMixedWriteOperation ( bool isOrdered )
173
173
{
174
- var requests = new WriteModel < BsonDocument > [ ]
175
- {
174
+ var requests = new WriteModel < BsonDocument > [ ]
175
+ {
176
176
new InsertOneModel < BsonDocument > ( new BsonDocument ( "_id" , 1 ) . Add ( "a" , 1 ) ) ,
177
177
new DeleteManyModel < BsonDocument > ( new BsonDocument ( "b" , 1 ) ) ,
178
178
new DeleteOneModel < BsonDocument > ( new BsonDocument ( "c" , 1 ) ) ,
@@ -546,7 +546,7 @@ public async Task FindAsync_with_Projection_As_should_execute_correctly()
546
546
Projection = Builders < A > . Projection . As < BsonDocument > ( )
547
547
} ;
548
548
549
- var result = await subject . FindAsync ( filter , options , CancellationToken . None ) ;
549
+ await subject . FindAsync ( filter , options , CancellationToken . None ) ;
550
550
551
551
var call = _operationExecutor . GetReadCall < IAsyncCursor < BsonDocument > > ( ) ;
552
552
call . Operation . Should ( ) . BeOfType < FindOperation < BsonDocument > > ( ) ;
@@ -593,7 +593,7 @@ public async Task FindOneAndDeleteAsync_with_Projection_As_should_execute_correc
593
593
Projection = Builders < A > . Projection . As < BsonDocument > ( )
594
594
} ;
595
595
596
- var result = await subject . FindOneAndDeleteAsync ( filter , options , CancellationToken . None ) ;
596
+ await subject . FindOneAndDeleteAsync ( filter , options , CancellationToken . None ) ;
597
597
598
598
var call = _operationExecutor . GetWriteCall < BsonDocument > ( ) ;
599
599
call . Operation . Should ( ) . BeOfType < FindOneAndDeleteOperation < BsonDocument > > ( ) ;
@@ -651,7 +651,7 @@ public async Task FindOneAndReplaceAsync_with_Projection_As_should_execute_corre
651
651
Projection = Builders < A > . Projection . As < BsonDocument > ( )
652
652
} ;
653
653
654
- var result = await subject . FindOneAndReplaceAsync ( filter , replacement , options , CancellationToken . None ) ;
654
+ await subject . FindOneAndReplaceAsync ( filter , replacement , options , CancellationToken . None ) ;
655
655
656
656
var call = _operationExecutor . GetWriteCall < BsonDocument > ( ) ;
657
657
call . Operation . Should ( ) . BeOfType < FindOneAndReplaceOperation < BsonDocument > > ( ) ;
@@ -709,7 +709,7 @@ public async Task FindOneAndUpdateAsync_with_Projection_As_should_execute_correc
709
709
Projection = Builders < A > . Projection . As < BsonDocument > ( )
710
710
} ;
711
711
712
- var result = await subject . FindOneAndUpdateAsync ( filter , update , options , CancellationToken . None ) ;
712
+ await subject . FindOneAndUpdateAsync ( filter , update , options , CancellationToken . None ) ;
713
713
714
714
var call = _operationExecutor . GetWriteCall < BsonDocument > ( ) ;
715
715
call . Operation . Should ( ) . BeOfType < FindOneAndUpdateOperation < BsonDocument > > ( ) ;
@@ -959,12 +959,12 @@ public void InsertOneAsync_should_throw_a_WriteException_when_an_error_occurs()
959
959
[ Test ]
960
960
public async Task InsertManyAsync_should_execute_the_BulkMixedOperation ( )
961
961
{
962
- var documents = new [ ]
963
- {
962
+ var documents = new [ ]
963
+ {
964
964
BsonDocument . Parse ( "{_id:1,a:1}" ) ,
965
965
BsonDocument . Parse ( "{_id:2,a:2}" )
966
966
} ;
967
- var expectedRequests = new [ ]
967
+ var expectedRequests = new [ ]
968
968
{
969
969
new InsertRequest ( documents [ 0 ] ) { CorrelationId = 0 } ,
970
970
new InsertRequest ( documents [ 1 ] ) { CorrelationId = 1 }
0 commit comments