def when_get_person_with_her_email(self): self.result = PersonRepo().get_person(email=self.orm_person.email) return self
def when_update_person_entity(self): self.result = PersonRepo().update_person(self.person) return self
def when_get_person_with_her_id(self): self.result = PersonRepo().get_person(id=str(self.orm_person.id)) return self
def when_create_guest_person(self): self.result = PersonRepo().create_guest_person() return self
def given_a_person(self): self.persons.append(PersonRepo().create_guest_person()) return self
def given_a_person(self): self.person = PersonRepo().create_guest_person() return self
def when_get_person_with_her_username(self): self.result = PersonRepo().get_person( username=self.orm_person.username) return self