Esposter
    Preparing search index...

    Class MockEventGridPublisherClient

    An in-memory mock of the Azure EventGridPublisherClient. It uses a Map to simulate event grid storage and correctly implements the EventGridPublisherClient interface. client is excluded because it is a private member of the real class and cannot be satisfied structurally.

    Implements

    • Except<EventGridPublisherClient<"EventGrid">, "apiVersion">
    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • endpoint: string
      • topicType: "EventGrid"

      Returns MockEventGridPublisherClient

    Properties

    endpointUrl: string

    The URL to the Event Grid endpoint.

    inputSchema: "EventGrid"
    topicType: "EventGrid"

    Methods

    • Sends events to a topic.

      Parameters

      • newEvents: EventGridEvent<unknown>[]

      Returns Promise<void>