Slide 45
Slide 45 text
currentPriceCents = 3833,
currentPriceTime = Instant.fromEpochSeconds(1636657688),
),
quantity = 25,
),
),
)
makePresenter().test {
assertThat(awaitItem()).isEqualTo(PortfolioModel.Loading)
assertThat(awaitItem()).isEqualTo(
PortfolioModel.Loaded(
positions = listOf(
PortfolioModel.PositionModel(
ticker = "TWTR",
name = "Twitter, Inc.",
currentPrice = "$38.33",
currentPriceTime = "Nov 11, 2021, 2:08 PM",
quantity = 25,
),
),
),
)
}
}