Interface IProtoBinaryContent

Namespace
ProtoTest.Core
Assembly
ProtoTest.Core.dll

A named binary payload a test produced - a downloaded report, an exported document. Integrations that consume files accept this instead of a response type, so REST, GraphQL or an attachment can feed them without any of them knowing about each other.

public interface IProtoBinaryContent
Extension Methods

Properties

Content

The bytes themselves.

ReadOnlyMemory<byte> Content { get; }

Property Value

ReadOnlyMemory<byte>

FileName

The file name, when the producer knows it (for example a Content-Disposition name).

string? FileName { get; }

Property Value

string

MediaType

The media type, when the producer knows it.

string? MediaType { get; }

Property Value

string