@@ -47,8 +47,8 @@ public async Task ExecuteReadOperation_throws_on_null_operation([Values(true, fa
47
47
var session = Mock . Of < IClientSessionHandle > ( ) ;
48
48
49
49
var exception = async ?
50
- await Record . ExceptionAsync ( ( ) => subject . ExecuteReadOperationAsync < object > ( null , options , session , true , CancellationToken . None ) ) :
51
- Record . Exception ( ( ) => subject . ExecuteReadOperation < object > ( null , options , session , true , CancellationToken . None ) ) ;
50
+ await Record . ExceptionAsync ( ( ) => subject . ExecuteReadOperationAsync < object > ( session , null , options , true , CancellationToken . None ) ) :
51
+ Record . Exception ( ( ) => subject . ExecuteReadOperation < object > ( session , null , options , true , CancellationToken . None ) ) ;
52
52
53
53
exception . Should ( ) . BeOfType < ArgumentNullException > ( )
54
54
. Subject . ParamName . Should ( ) . Be ( "operation" ) ;
@@ -63,8 +63,8 @@ public async Task ExecuteReadOperation_throws_on_null_options([Values(true, fals
63
63
var session = Mock . Of < IClientSessionHandle > ( ) ;
64
64
65
65
var exception = async ?
66
- await Record . ExceptionAsync ( ( ) => subject . ExecuteReadOperationAsync ( operation , null , session , true , CancellationToken . None ) ) :
67
- Record . Exception ( ( ) => subject . ExecuteReadOperation ( operation , null , session , true , CancellationToken . None ) ) ;
66
+ await Record . ExceptionAsync ( ( ) => subject . ExecuteReadOperationAsync ( session , operation , null , true , CancellationToken . None ) ) :
67
+ Record . Exception ( ( ) => subject . ExecuteReadOperation ( session , operation , null , true , CancellationToken . None ) ) ;
68
68
69
69
exception . Should ( ) . BeOfType < ArgumentNullException > ( )
70
70
. Subject . ParamName . Should ( ) . Be ( "options" ) ;
@@ -79,8 +79,8 @@ public async Task ExecuteReadOperation_throws_on_null_session([Values(true, fals
79
79
var options = new ReadOperationOptions ( ) ;
80
80
81
81
var exception = async ?
82
- await Record . ExceptionAsync ( ( ) => subject . ExecuteReadOperationAsync ( operation , options , null , true , CancellationToken . None ) ) :
83
- Record . Exception ( ( ) => subject . ExecuteReadOperation ( operation , options , null , true , CancellationToken . None ) ) ;
82
+ await Record . ExceptionAsync ( ( ) => subject . ExecuteReadOperationAsync ( null , operation , options , true , CancellationToken . None ) ) :
83
+ Record . Exception ( ( ) => subject . ExecuteReadOperation ( null , operation , options , true , CancellationToken . None ) ) ;
84
84
85
85
exception . Should ( ) . BeOfType < ArgumentNullException > ( )
86
86
. Subject . ParamName . Should ( ) . Be ( "session" ) ;
@@ -95,8 +95,8 @@ public async Task ExecuteWriteOperation_throws_on_null_operation([Values(true, f
95
95
var session = Mock . Of < IClientSessionHandle > ( ) ;
96
96
97
97
var exception = async ?
98
- await Record . ExceptionAsync ( ( ) => subject . ExecuteWriteOperationAsync < object > ( null , options , session , true , CancellationToken . None ) ) :
99
- Record . Exception ( ( ) => subject . ExecuteWriteOperation < object > ( null , options , session , true , CancellationToken . None ) ) ;
98
+ await Record . ExceptionAsync ( ( ) => subject . ExecuteWriteOperationAsync < object > ( session , null , options , true , CancellationToken . None ) ) :
99
+ Record . Exception ( ( ) => subject . ExecuteWriteOperation < object > ( session , null , options , true , CancellationToken . None ) ) ;
100
100
101
101
exception . Should ( ) . BeOfType < ArgumentNullException > ( )
102
102
. Subject . ParamName . Should ( ) . Be ( "operation" ) ;
@@ -111,8 +111,8 @@ public async Task ExecuteWriteOperation_throws_on_null_options([Values(true, fal
111
111
var session = Mock . Of < IClientSessionHandle > ( ) ;
112
112
113
113
var exception = async ?
114
- await Record . ExceptionAsync ( ( ) => subject . ExecuteWriteOperationAsync ( operation , null , session , true , CancellationToken . None ) ) :
115
- Record . Exception ( ( ) => subject . ExecuteWriteOperation ( operation , null , session , true , CancellationToken . None ) ) ;
114
+ await Record . ExceptionAsync ( ( ) => subject . ExecuteWriteOperationAsync ( session , operation , null , true , CancellationToken . None ) ) :
115
+ Record . Exception ( ( ) => subject . ExecuteWriteOperation ( session , operation , null , true , CancellationToken . None ) ) ;
116
116
117
117
exception . Should ( ) . BeOfType < ArgumentNullException > ( )
118
118
. Subject . ParamName . Should ( ) . Be ( "options" ) ;
@@ -127,8 +127,8 @@ public async Task ExecuteWriteOperation_throws_on_null_session([Values(true, fal
127
127
var options = new WriteOperationOptions ( ) ;
128
128
129
129
var exception = async ?
130
- await Record . ExceptionAsync ( ( ) => subject . ExecuteWriteOperationAsync ( operation , options , null , true , CancellationToken . None ) ) :
131
- Record . Exception ( ( ) => subject . ExecuteWriteOperation ( operation , options , null , true , CancellationToken . None ) ) ;
130
+ await Record . ExceptionAsync ( ( ) => subject . ExecuteWriteOperationAsync ( null , operation , options , true , CancellationToken . None ) ) :
131
+ Record . Exception ( ( ) => subject . ExecuteWriteOperation ( null , operation , options , true , CancellationToken . None ) ) ;
132
132
133
133
exception . Should ( ) . BeOfType < ArgumentNullException > ( )
134
134
. Subject . ParamName . Should ( ) . Be ( "session" ) ;
0 commit comments