FakeExchangesApi

A fake implementation of the ExchangesApi interface for testing purposes. This class provides mock implementations for various methods.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun addMessage(message: Message)

Adds a Message to the mock exchanges.

Link copied to clipboard
open override fun getClose(exchangeId: String): Close

Returns a Close associated with the specified exchange ID.

Link copied to clipboard
open override fun getExchange(id: String, requesterDid: String): List<Message>

Returns a list of Message representing the exchange with the specified ID.

Link copied to clipboard
open override fun getExchanges(filter: GetExchangesFilter?): List<List<Message>>

Returns a list of lists of Message representing exchanges based on the provided filter.

Link copied to clipboard
open override fun getOrder(exchangeId: String): Order

Returns an Order associated with the specified exchange ID.

Link copied to clipboard
open override fun getOrderStatuses(exchangeId: String): List<OrderStatus>

Returns a list of OrderStatus associated with the specified exchange ID.

Link copied to clipboard
open override fun getQuote(exchangeId: String): Quote

Returns a Quote associated with the specified exchange ID.

Link copied to clipboard
open override fun getRfq(exchangeId: String): Rfq

Returns an Rfq associated with the specified exchange ID.

Link copied to clipboard

Resets the mock exchanges, clearing all stored messages.