Click or drag to resize
HttpTest Class
Use this instead of HttpTest for any OpenStack.NET unit tests.

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.

Inheritance Hierarchy
SystemObject
  HttpTest
    OpenStack.TestingHttpTest

Namespace: OpenStack.Testing
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public class HttpTest : HttpTest, IDisposable

The HttpTest type exposes the following members.

Constructors
  NameDescription
Public methodHttpTest
Initializes a new instance of the HttpTest class.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodRespondWith(String) (Inherited from HttpTest.)
Public methodRespondWith(Int32, String) (Inherited from HttpTest.)
Public methodRespondWithJson(Object)
Public methodRespondWithJson(Int32, Object)
Public methodShouldHaveCalled (Inherited from HttpTest.)
Public methodShouldNotHaveCalled (Inherited from HttpTest.)
Public methodSimulateTimeout (Inherited from HttpTest.)
Top
Properties
  NameDescription
Public propertyCallLog (Inherited from HttpTest.)
Public propertyResponseQueue (Inherited from HttpTest.)
Top
Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5
See Also