-
Notifications
You must be signed in to change notification settings - Fork 0
Test Fixtures
Ali Sadeghi edited this page Jan 6, 2026
·
7 revisions
Generates test fixtures for domain models.
// feature/login/src/commonTest/kotlin/fixtures/LoginFixtures.kt
object LoginFixtures {
fun loginRequest(
email: String = "test@example.com",
password: String = "password123"
) = LoginRequest(email, password)
fun loginResponse(
token: String = "sample-token-123",
user: User = UserFixtures.user()
) = LoginResponse(token, user)
fun user(
id: String = "user-123",
name: String = "Test User",
email: String = "test@example.com"
) = User(id, name, email)
}Back to Agents