19 lines
626 B
Kotlin
19 lines
626 B
Kotlin
|
package cash.z.wallet.sdk.sample.demoapp.fixture
|
||
|
|
||
|
import cash.z.ecc.android.sdk.demoapp.model.CurrencyConversion
|
||
|
import cash.z.ecc.android.sdk.demoapp.model.FiatCurrency
|
||
|
import kotlinx.datetime.Instant
|
||
|
import kotlinx.datetime.toInstant
|
||
|
|
||
|
object CurrencyConversionFixture {
|
||
|
val FIAT_CURRENCY = FiatCurrencyFixture.new()
|
||
|
val TIMESTAMP = "2022-07-08T11:51:44Z".toInstant()
|
||
|
const val PRICE_OF_ZEC = 54.98
|
||
|
|
||
|
fun new(
|
||
|
fiatCurrency: FiatCurrency = FIAT_CURRENCY,
|
||
|
timestamp: Instant = TIMESTAMP,
|
||
|
priceOfZec: Double = PRICE_OF_ZEC
|
||
|
) = CurrencyConversion(fiatCurrency, timestamp, priceOfZec)
|
||
|
}
|