HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Namespace Singulink.Net.Http.Api.Service.Testing

    Classes

    FaultInjectionHandler

    A message handler for testing API clients that makes chosen requests fail as an unreliable network or service would: before or after they reach the service, with a response of the test's own, or by cutting off a streaming response after a number of records. Other requests are sent to the inner handler, such as the handler of a test server.

    RecordedRequest

    Represents a request that a FaultInjectionHandler received, as it was when the handler received it.

    SoftwareAuthenticator

    A software authenticator that holds one passkey (an ES256 key pair) and answers WebAuthn ceremonies as a browser would: it takes the options JSON of a ceremony and returns the credential JSON (the PublicKeyCredential.toJSON() form) with a none attestation.

    TestSessionContext<TSessionToken>

    A session context for testing code that takes one, without a request or a session store. It has the token of a session or none, and checks the request's origin and user ID precondition as session handling does. Signing in calls the session creation function with a SignInInfo for the expiries of Options, and keeps the token that the function returns.

    TestUploadedFile

    An uploaded file for testing the handlers of chunked uploads without a request. Its content is in a temporary file, which is deleted when it is disposed unless the handler moved it.

    TestUploadedFile<TCommand>

    An uploaded file with the app's command for testing the handlers of chunked uploads without a request, which Create<TCommand>(byte[], string, TCommand, string?) creates. Its content is in a temporary file, which is deleted when it is disposed unless the handler moved it.

    UploadStoreContract

    Checks that an IUploadStore keeps the guarantees that chunked uploads rely on (see IUploadStore), also when several requests use it at the same time.

    © Singulink. All rights reserved.