- private fun createSone(id: String, name: String, firstName: String, lastName: String, time: Long) = mock<Sone>().apply {
- whenever(this.id).thenReturn(id)
- whenever(this.name).thenReturn(name)
- whenever(profile).thenReturn(Profile(this).apply {
- this.firstName = firstName
- this.lastName = lastName
- })
- whenever(this.time).thenReturn(time)
- }
-