nim-codex/tests/dagger/helpers/mockmarket.nim

9 lines
217 B
Nim
Raw Normal View History

2022-03-23 12:57:48 +00:00
import pkg/dagger/market
type
MockMarket* = ref object of Market
requested*: seq[StorageRequest]
2022-03-23 12:57:48 +00:00
method requestStorage*(market: MockMarket, request: StorageRequest) {.async.} =
market.requested.add(request)