HttpTest Class |
This extends Flurl's default HttpTest to use AuthenticatedMessageHandler in unit tests. If you use the default HttpTest, then any tests which rely upon authentication handling (e.g retrying a request when a token expires) will fail.
Namespace: OpenStack.Testing
The HttpTest type exposes the following members.
Name | Description | |
---|---|---|
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
![]() | RespondWith(String) | (Inherited from HttpTest.) |
![]() | RespondWith(Int32, String) | (Inherited from HttpTest.) |
![]() | RespondWithJson(Object) | |
![]() | RespondWithJson(Int32, Object) | |
![]() | ShouldHaveCalled | (Inherited from HttpTest.) |
![]() | ShouldNotHaveCalled | (Inherited from HttpTest.) |
![]() | SimulateTimeout | (Inherited from HttpTest.) |
Name | Description | |
---|---|---|
![]() | CallLog | (Inherited from HttpTest.) |
![]() | ResponseQueue | (Inherited from HttpTest.) |