feat(#102): mock préremplissage AM étape 2 - NIR Marie Dubois 2A (Ajaccio)

Made-with: Cursor
This commit is contained in:
MARTIN Julien 2026-02-26 11:24:27 +01:00
parent 3dbddbb8c4
commit 38c003ef6f

View File

@ -54,15 +54,15 @@ class _AmRegisterStep2ScreenState extends State<AmRegisterStep2Screen> {
capacity: registrationData.capacity, capacity: registrationData.capacity,
); );
// Générer des données de test si les champs sont vides // Générer des données de test si les champs sont vides (NIR = Marie Dubois du seed, Corse 2A)
if (registrationData.dateOfBirth == null && registrationData.nir.isEmpty) { if (registrationData.dateOfBirth == null && registrationData.nir.isEmpty) {
initialData = ProfessionalInfoData( initialData = ProfessionalInfoData(
photoPath: 'assets/images/icon_assmat.png', photoPath: 'assets/images/icon_assmat.png',
photoConsent: true, photoConsent: true,
dateOfBirth: DateTime(1985, 3, 15), dateOfBirth: DateTime(1980, 6, 8),
birthCity: DataGenerator.city(), birthCity: 'Ajaccio',
birthCountry: 'France', birthCountry: 'France',
nir: '${DataGenerator.randomIntInRange(1, 3)}${DataGenerator.randomIntInRange(80, 96)}${DataGenerator.randomIntInRange(1, 13).toString().padLeft(2, '0')}${DataGenerator.randomIntInRange(1, 100).toString().padLeft(2, '0')}${DataGenerator.randomIntInRange(100, 1000).toString().padLeft(3, '0')}${DataGenerator.randomIntInRange(100, 1000).toString().padLeft(3, '0')}${DataGenerator.randomIntInRange(10, 100).toString().padLeft(2, '0')}', nir: '280062A00100191',
agrementNumber: 'AM${DataGenerator.randomIntInRange(10000, 100000)}', agrementNumber: 'AM${DataGenerator.randomIntInRange(10000, 100000)}',
capacity: DataGenerator.randomIntInRange(1, 5), capacity: DataGenerator.randomIntInRange(1, 5),
); );