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

9 lines
215 B
Nim
Raw Normal View History

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