Skip to content

Instantly share code, notes, and snippets.

@JohanneA
Last active November 22, 2021 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohanneA/2949e8a1fb450d66b022fb898ced972b to your computer and use it in GitHub Desktop.
Save JohanneA/2949e8a1fb450d66b022fb898ced972b to your computer and use it in GitHub Desktop.
Kotlin Test DSL
fun getShipmentWithOneBox(): Shipment {
return Shipment(
id = 1L,
boxes = listOf(
Box(
id = 1L,
contents = listOf(
Product(id = 1L, name = "Pink Fuzzy Jacket"))
)
)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment