add email to citizen entity

This commit is contained in:
2019-10-08 14:37:21 +02:00
parent ebc552a431
commit f91b25b35b
9 changed files with 19 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ class ArticleSteps: En, KoinTest {
Given("I have article with id {string}") { id: String ->
var citizen = Citizen(
name = Citizen.Name("John", "Doe"),
email = "john.doe@gmail.com",
birthday = DateTime.now(),
user = UserEntity(username = "john-doe", plainPassword = "azerty")
)
@@ -55,6 +56,7 @@ class ArticleSteps: En, KoinTest {
Given("I have comment {string} on article {string}") { commentId: String, articleId: String ->
var citizen = Citizen(
name = Citizen.Name("John", "Doe"),
email = "john.doe@gmail.com",
birthday = DateTime.now(),
user = UserEntity(username = "john-doe", plainPassword = "azerty")
)