final Course courseXC2 = getCourseService().getCourseParNom(evenement2,
"Cross-Country");
final Course courseDH2 = getCourseService().getCourseParNom(evenement2,
"Downhill");
final Cart cartJdoe1 = new Cart();
final Cart cartJdoe2 = new Cart();
final Tarification tarificationXseH1 = getTarificationService()
.findByCourseCategorie(courseXC1, categorieXseH);
final Tarification tarificationXseH2 = getTarificationService()
.findByCourseCategorie(courseXC2, categorieXseH);
final Tarification tarificationXsxH2 = getTarificationService()
.findByCourseCategorie(courseXC2, categorieXsxH);
final Tarification tarificationDssH2 = getTarificationService()
.findByCourseCategorie(courseDH2, categorieDssH);
ComposantInscription composantInscription1 = new ComposantInscription(
personneJDoe, tarificationXseH1);
CartItemInscription cartItemInscription1 = new CartItemInscription(
composantInscription1);
cartJdoe1.add(cartItemInscription1, getRabaisEvenementService());
ComposantInscription composantInscription2 = new ComposantInscription(
personneJDoe, tarificationXseH2);
CartItemInscription cartItemInscription2 = new CartItemInscription(
composantInscription2);
cartJdoe1.add(cartItemInscription2, getRabaisEvenementService());
ComposantInscription composantInscription3 = new ComposantInscription(
personneOKnussen, tarificationXsxH2);
CartItemInscription cartItemInscription3 = new CartItemInscription(
composantInscription3);
cartJdoe1.add(cartItemInscription3, getRabaisEvenementService());
facture = getFactureService().createFacture(personneJDoe, cartJdoe1);
completeTransactions(personneJDoe, facture);
ComposantInscription composantInscription4 = new ComposantInscription(
personneJDoe, tarificationDssH2);
CartItemInscription cartItemInscription4 = new CartItemInscription(
composantInscription4);
cartJdoe2.add(cartItemInscription4, getRabaisEvenementService());
facture = getFactureService().createFacture(personneJDoe, cartJdoe2);
completeTransactions(personneJDoe, facture);
}