-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathTestData.scala
25 lines (18 loc) · 915 Bytes
/
TestData.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package io.pager
import java.time.Instant
import io.pager.client.github.GitHubRelease
import io.pager.client.telegram.ChatId
import io.pager.subscription.Repository.{ Name, Version }
object TestData {
val finalVersion: Version = Version("1.0.0")
val rcVersion: Version = Version("1.0.0-RC17")
val timestamp1: Instant = Instant.parse("2019-11-29T17:34:23.00Z")
val timestamp2: Instant = Instant.parse("2019-12-30T18:35:24.00Z")
val rcRelease: GitHubRelease = GitHubRelease(rcVersion, timestamp1)
val finalRelease: GitHubRelease = GitHubRelease(finalVersion, timestamp2)
val releases: List[GitHubRelease] = List(rcRelease, finalRelease)
val chatId1: ChatId = ChatId(1L)
val chatId2: ChatId = ChatId(2L)
val subscribers: Set[ChatId] = Set(chatId1, chatId2)
def message(name: Name) = s"There is a new version of ${name.value} available: ${finalVersion.value}"
}