@@ -43,45 +43,45 @@ public class SampleData {
4343
4444 static {
4545 PLAYERS = new ArrayList <>();
46- PLAYERS .add (PlayerDetails . create ("john@google.com" , "312-342" , "+3242434242" ));
47- PLAYERS .add (PlayerDetails . create ("mary@google.com" , "234-987" , "+23452346" ));
48- PLAYERS .add (PlayerDetails . create ("steve@google.com" , "833-836" , "+63457543" ));
49- PLAYERS .add (PlayerDetails . create ("wayne@google.com" , "319-826" , "+24626" ));
50- PLAYERS .add (PlayerDetails . create ("johnie@google.com" , "983-322" , "+3635635" ));
51- PLAYERS .add (PlayerDetails . create ("andy@google.com" , "934-734" , "+0898245" ));
52- PLAYERS .add (PlayerDetails . create ("richard@google.com" , "536-738" , "+09845325" ));
53- PLAYERS .add (PlayerDetails . create ("kevin@google.com" , "453-936" , "+2423532" ));
54- PLAYERS .add (PlayerDetails . create ("arnold@google.com" , "114-988" , "+5646346524" ));
55- PLAYERS .add (PlayerDetails . create ("ian@google.com" , "663-765" , "+928394235" ));
56- PLAYERS .add (PlayerDetails . create ("robin@google.com" , "334-763" , "+35448" ));
57- PLAYERS .add (PlayerDetails . create ("ted@google.com" , "735-964" , "+98752345" ));
58- PLAYERS .add (PlayerDetails . create ("larry@google.com" , "734-853" , "+043842423" ));
59- PLAYERS .add (PlayerDetails . create ("calvin@google.com" , "334-746" , "+73294135" ));
60- PLAYERS .add (PlayerDetails . create ("jacob@google.com" , "444-766" , "+358042354" ));
61- PLAYERS .add (PlayerDetails . create ("edwin@google.com" , "895-345" , "+9752435" ));
62- PLAYERS .add (PlayerDetails . create ("mary@google.com" , "760-009" , "+34203542" ));
63- PLAYERS .add (PlayerDetails . create ("lolita@google.com" , "425-907" , "+9872342" ));
64- PLAYERS .add (PlayerDetails . create ("bruno@google.com" , "023-638" , "+673824122" ));
65- PLAYERS .add (PlayerDetails . create ("peter@google.com" , "335-886" , "+5432503945" ));
66- PLAYERS .add (PlayerDetails . create ("warren@google.com" , "225-946" , "+9872341324" ));
67- PLAYERS .add (PlayerDetails . create ("monica@google.com" , "265-748" , "+134124" ));
68- PLAYERS .add (PlayerDetails . create ("ollie@google.com" , "190-045" , "+34453452" ));
69- PLAYERS .add (PlayerDetails . create ("yngwie@google.com" , "241-465" , "+9897641231" ));
70- PLAYERS .add (PlayerDetails . create ("lars@google.com" , "746-936" , "+42345298345" ));
71- PLAYERS .add (PlayerDetails . create ("bobbie@google.com" , "946-384" , "+79831742" ));
72- PLAYERS .add (PlayerDetails . create ("tyron@google.com" , "310-992" , "+0498837412" ));
73- PLAYERS .add (PlayerDetails . create ("tyrell@google.com" , "032-045" , "+67834134" ));
74- PLAYERS .add (PlayerDetails . create ("nadja@google.com" , "000-346" , "+498723" ));
75- PLAYERS .add (PlayerDetails . create ("wendy@google.com" , "994-989" , "+987324454" ));
76- PLAYERS .add (PlayerDetails . create ("luke@google.com" , "546-634" , "+987642435" ));
77- PLAYERS .add (PlayerDetails . create ("bjorn@google.com" , "342-874" , "+7834325" ));
78- PLAYERS .add (PlayerDetails . create ("lisa@google.com" , "024-653" , "+980742154" ));
79- PLAYERS .add (PlayerDetails . create ("anton@google.com" , "834-935" , "+876423145" ));
80- PLAYERS .add (PlayerDetails . create ("bruce@google.com" , "284-936" , "+09843212345" ));
81- PLAYERS .add (PlayerDetails . create ("ray@google.com" , "843-073" , "+678324123" ));
82- PLAYERS .add (PlayerDetails . create ("ron@google.com" , "637-738" , "+09842354" ));
83- PLAYERS .add (PlayerDetails . create ("xavier@google.com" , "143-947" , "+375245" ));
84- PLAYERS .add (PlayerDetails . create ("harriet@google.com" , "842-404" , "+131243252" ));
46+ PLAYERS .add (new PlayerDetails ("john@google.com" , "312-342" , "+3242434242" ));
47+ PLAYERS .add (new PlayerDetails ("mary@google.com" , "234-987" , "+23452346" ));
48+ PLAYERS .add (new PlayerDetails ("steve@google.com" , "833-836" , "+63457543" ));
49+ PLAYERS .add (new PlayerDetails ("wayne@google.com" , "319-826" , "+24626" ));
50+ PLAYERS .add (new PlayerDetails ("johnie@google.com" , "983-322" , "+3635635" ));
51+ PLAYERS .add (new PlayerDetails ("andy@google.com" , "934-734" , "+0898245" ));
52+ PLAYERS .add (new PlayerDetails ("richard@google.com" , "536-738" , "+09845325" ));
53+ PLAYERS .add (new PlayerDetails ("kevin@google.com" , "453-936" , "+2423532" ));
54+ PLAYERS .add (new PlayerDetails ("arnold@google.com" , "114-988" , "+5646346524" ));
55+ PLAYERS .add (new PlayerDetails ("ian@google.com" , "663-765" , "+928394235" ));
56+ PLAYERS .add (new PlayerDetails ("robin@google.com" , "334-763" , "+35448" ));
57+ PLAYERS .add (new PlayerDetails ("ted@google.com" , "735-964" , "+98752345" ));
58+ PLAYERS .add (new PlayerDetails ("larry@google.com" , "734-853" , "+043842423" ));
59+ PLAYERS .add (new PlayerDetails ("calvin@google.com" , "334-746" , "+73294135" ));
60+ PLAYERS .add (new PlayerDetails ("jacob@google.com" , "444-766" , "+358042354" ));
61+ PLAYERS .add (new PlayerDetails ("edwin@google.com" , "895-345" , "+9752435" ));
62+ PLAYERS .add (new PlayerDetails ("mary@google.com" , "760-009" , "+34203542" ));
63+ PLAYERS .add (new PlayerDetails ("lolita@google.com" , "425-907" , "+9872342" ));
64+ PLAYERS .add (new PlayerDetails ("bruno@google.com" , "023-638" , "+673824122" ));
65+ PLAYERS .add (new PlayerDetails ("peter@google.com" , "335-886" , "+5432503945" ));
66+ PLAYERS .add (new PlayerDetails ("warren@google.com" , "225-946" , "+9872341324" ));
67+ PLAYERS .add (new PlayerDetails ("monica@google.com" , "265-748" , "+134124" ));
68+ PLAYERS .add (new PlayerDetails ("ollie@google.com" , "190-045" , "+34453452" ));
69+ PLAYERS .add (new PlayerDetails ("yngwie@google.com" , "241-465" , "+9897641231" ));
70+ PLAYERS .add (new PlayerDetails ("lars@google.com" , "746-936" , "+42345298345" ));
71+ PLAYERS .add (new PlayerDetails ("bobbie@google.com" , "946-384" , "+79831742" ));
72+ PLAYERS .add (new PlayerDetails ("tyron@google.com" , "310-992" , "+0498837412" ));
73+ PLAYERS .add (new PlayerDetails ("tyrell@google.com" , "032-045" , "+67834134" ));
74+ PLAYERS .add (new PlayerDetails ("nadja@google.com" , "000-346" , "+498723" ));
75+ PLAYERS .add (new PlayerDetails ("wendy@google.com" , "994-989" , "+987324454" ));
76+ PLAYERS .add (new PlayerDetails ("luke@google.com" , "546-634" , "+987642435" ));
77+ PLAYERS .add (new PlayerDetails ("bjorn@google.com" , "342-874" , "+7834325" ));
78+ PLAYERS .add (new PlayerDetails ("lisa@google.com" , "024-653" , "+980742154" ));
79+ PLAYERS .add (new PlayerDetails ("anton@google.com" , "834-935" , "+876423145" ));
80+ PLAYERS .add (new PlayerDetails ("bruce@google.com" , "284-936" , "+09843212345" ));
81+ PLAYERS .add (new PlayerDetails ("ray@google.com" , "843-073" , "+678324123" ));
82+ PLAYERS .add (new PlayerDetails ("ron@google.com" , "637-738" , "+09842354" ));
83+ PLAYERS .add (new PlayerDetails ("xavier@google.com" , "143-947" , "+375245" ));
84+ PLAYERS .add (new PlayerDetails ("harriet@google.com" , "842-404" , "+131243252" ));
8585 InMemoryBank wireTransfers = new InMemoryBank ();
8686 Random random = new Random ();
8787 for (int i = 0 ; i < PLAYERS .size (); i ++) {
@@ -95,7 +95,7 @@ public class SampleData {
9595 */
9696 public static void submitTickets (LotteryService lotteryService , int numTickets ) {
9797 for (int i = 0 ; i < numTickets ; i ++) {
98- LotteryTicket ticket = LotteryTicket . create (new LotteryTicketId (),
98+ LotteryTicket ticket = new LotteryTicket (new LotteryTicketId (),
9999 getRandomPlayerDetails (), LotteryNumbers .createRandom ());
100100 lotteryService .submitTicket (ticket );
101101 }
0 commit comments