@@ -71,7 +71,7 @@ public async Task BindCompleted()
7171 }
7272
7373 [ Fact ]
74- public void BindConflict ( )
74+ public async Task BindConflict ( )
7575 {
7676 var request = new ServiceBindingRequest
7777 {
@@ -81,13 +81,13 @@ public void BindConflict()
8181
8282 Mock . Setup ( x => x . BindAsync ( new ( "123" , "456" ) , request ) )
8383 . Throws < ConflictException > ( ) ;
84- Client . ServiceInstancesPolling [ "123" ] . ServiceBindings [ "456" ]
85- . Awaiting ( x => x . BindAsync ( request ) )
86- . Should ( ) . Throw < ConflictException > ( ) ;
84+ await Client . ServiceInstancesPolling [ "123" ] . ServiceBindings [ "456" ]
85+ . Awaiting ( x => x . BindAsync ( request ) )
86+ . Should ( ) . ThrowAsync < ConflictException > ( ) ;
8787 }
8888
8989 [ Fact ]
90- public void BindAsyncError ( )
90+ public async Task BindAsyncError ( )
9191 {
9292 var request = new ServiceBindingRequest
9393 {
@@ -108,9 +108,9 @@ public void BindAsyncError()
108108 . ReturnsAsync ( response ) ;
109109 Mock . Setup ( x => x . GetLastOperationAsync ( new ( "123" , "456" ) , "abc" , "xyz" , "my operation" ) )
110110 . ReturnsAsync ( operation ) ;
111- Client . ServiceInstancesPolling [ "123" ] . ServiceBindings [ "456" ]
112- . Awaiting ( x => x . BindAsync ( request ) )
113- . Should ( ) . Throw < BrokerException > ( ) . WithMessage ( "custom message" ) ;
111+ await Client . ServiceInstancesPolling [ "123" ] . ServiceBindings [ "456" ]
112+ . Awaiting ( x => x . BindAsync ( request ) )
113+ . Should ( ) . ThrowAsync < BrokerException > ( ) . WithMessage ( "custom message" ) ;
114114 }
115115
116116 [ Fact ]
@@ -144,17 +144,17 @@ public async Task UnbindCompleted()
144144 }
145145
146146 [ Fact ]
147- public void UnbindGone ( )
147+ public async Task UnbindGone ( )
148148 {
149149 Mock . Setup ( x => x . UnbindAsync ( new ( "123" , "456" ) , "abc" , "xyz" ) )
150150 . Throws < GoneException > ( ) ;
151- Client . ServiceInstancesPolling [ "123" ] . ServiceBindings [ "456" ]
152- . Awaiting ( x => x . UnbindAsync ( "abc" , "xyz" ) )
153- . Should ( ) . Throw < GoneException > ( ) ;
151+ await Client . ServiceInstancesPolling [ "123" ] . ServiceBindings [ "456" ]
152+ . Awaiting ( x => x . UnbindAsync ( "abc" , "xyz" ) )
153+ . Should ( ) . ThrowAsync < GoneException > ( ) ;
154154 }
155155
156156 [ Fact ]
157- public void UnbindAsyncGone ( )
157+ public async Task UnbindAsyncGone ( )
158158 {
159159 var response = new ServiceInstanceAsyncOperation
160160 {
@@ -165,9 +165,9 @@ public void UnbindAsyncGone()
165165 . ReturnsAsync ( response ) ;
166166 Mock . Setup ( x => x . GetLastOperationAsync ( new ( "123" , "456" ) , "abc" , "xyz" , "my operation" ) )
167167 . Throws < GoneException > ( ) ;
168- Client . ServiceInstancesPolling [ "123" ] . ServiceBindings [ "456" ]
169- . Awaiting ( x => x . UnbindAsync ( "abc" , "xyz" ) )
170- . Should ( ) . Throw < GoneException > ( ) ;
168+ await Client . ServiceInstancesPolling [ "123" ] . ServiceBindings [ "456" ]
169+ . Awaiting ( x => x . UnbindAsync ( "abc" , "xyz" ) )
170+ . Should ( ) . ThrowAsync < GoneException > ( ) ;
171171 }
172172 }
173173}
0 commit comments