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

Search Results for

    Method Create

    Create(byte[], string, string?)

    Creates an uploaded file with the specified content in a temporary file, which FilePath has.

    Declaration
    public static TestUploadedFile Create(byte[] content, string fileName, string? contentType = null)
    Parameters
    Type Name Description
    byte[] content

    The content of the file.

    string fileName

    The name of the file.

    string contentType

    The content type of the file, if any.

    Returns
    Type Description
    TestUploadedFile

    Create<TCommand>(byte[], string, TCommand, string?)

    Creates an uploaded file with the specified content in a temporary file, which FilePath has, and the specified command.

    Declaration
    public static TestUploadedFile<TCommand> Create<TCommand>(byte[] content, string fileName, TCommand command, string? contentType = null)
    Parameters
    Type Name Description
    byte[] content

    The content of the file.

    string fileName

    The name of the file.

    TCommand command

    The app's command.

    string contentType

    The content type of the file, if any.

    Returns
    Type Description
    TestUploadedFile<TCommand>
    Type Parameters
    Name Description
    TCommand

    The type of the command.

    © Singulink. All rights reserved.