Click or drag to resize
HttpTest Class
Use this instead of Flurl.Http.Testing.HttpTest when writing unit tests against the Rackspace APIs.

This extends Flurl's the appropriate HttpMessageHandler 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
    HttpTest
      Rackspace.TestingHttpTest

Namespace: Rackspace.Testing
Assembly: Rackspace (in Rackspace.dll) Version: 0.2.0+Branch.master.Sha.9ad6ce59ab4f7b2400f7a7c9c086aa1c5ea11c4e
Syntax
public class HttpTest : HttpTest

The HttpTest type exposes the following members.

Constructors
  NameDescription
Public methodHttpTest
Initializes a new instance of the HttpTest class
Top
Properties
  NameDescription
Public propertyCallLog (Inherited from HttpTest.)
Public propertyResponseQueue (Inherited from HttpTest.)
Top
Methods
  NameDescription
Public methodDispose (Inherited from HttpTest.)
Public methodRespondWith(String) (Inherited from HttpTest.)
Public methodRespondWith(Int32, String) (Inherited from HttpTest.)
Public methodRespondWithJson(Object) (Inherited from HttpTest.)
Public methodRespondWithJson(Int32, Object) (Inherited from HttpTest.)
Public methodShouldHaveCalled (Inherited from HttpTest.)
Public methodShouldNotHaveCalled (Inherited from HttpTest.)
Public methodSimulateTimeout (Inherited from HttpTest.)
Top
See Also