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.

    Implements

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

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • endpoint: string
      • topicType: "EventGrid"

      Returns MockEventGridPublisherClient

    Properties

    endpoint: string
    topicType: "EventGrid"

    Methods

    • Sends events to a topic.

      Parameters

      • newEvents: EventGridEvent<unknown>[]

      Returns Promise<void>