Skip to content

Instantly share code, notes, and snippets.

@frootloops
Created August 6, 2021 09:07
Show Gist options
  • Save frootloops/d0f3ce5f7af8b676b136d1ca9016b780 to your computer and use it in GitHub Desktop.
Save frootloops/d0f3ce5f7af8b676b136d1ca9016b780 to your computer and use it in GitHub Desktop.
final class PriceAlertRepositoryMock: PriceAlertRepositoryProtocol {
var cachedPriceAlertsMockFunc = MockFunc<String?, [PriceAlert]>()
func cachedPriceAlerts(symbol: String?) -> [PriceAlert] {
return cachedPriceAlertsMockFunc.callAndReturn(symbol)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment