- val oldState = MovieState(setOf(Movie("1", "").apply {
- addPerformance(Performance(LocalDateTime.of(2024, 2, 14, 14, 30), "", ""))
- addPerformance(Performance(LocalDateTime.of(2024, 2, 14, 18, 45), "", ""))
- }))
- val newState = MovieState(setOf(Movie("1", "").apply {
- addPerformance(Performance(LocalDateTime.of(2024, 2, 14, 18, 45), "", ""))
- }))
+ val oldState = MovieState(setOf(Movie("1", "", "", listOf(
+ Performance(LocalDateTime.of(2024, 2, 14, 14, 30), "", ""),
+ Performance(LocalDateTime.of(2024, 2, 14, 18, 45), "", "")
+ ))))
+ val newState = MovieState(setOf(Movie("1", "", "", listOf(
+ Performance(LocalDateTime.of(2024, 2, 14, 18, 45), "", "")
+ ))))