1 00:00:00,000 --> 00:00:02,470 [No Audio] 2 00:00:02,470 --> 00:00:03,946 So in this video, we're just going to flush 3 00:00:03,946 --> 00:00:06,334 out the UserRepository class and the user domain 4 00:00:06,334 --> 00:00:08,311 object just so we've got a bit of better 5 00:00:08,311 --> 00:00:10,876 test data to work with in our production code. 6 00:00:10,876 --> 00:00:15,176 So if I go to the UserRepository class, we 7 00:00:15,176 --> 00:00:16,856 can see here we've got four users that we're going 8 00:00:16,856 --> 00:00:19,354 to return in the complete set of users. 9 00:00:19,354 --> 00:00:21,044 If I had a method that would do 10 00:00:21,044 --> 00:00:22,904 that, let's have this method in now. 11 00:00:22,904 --> 00:00:24,728 So let's just say 12 00:00:24,728 --> 00:00:30,650 public list, user, find all. 13 00:00:30,650 --> 00:00:35,204 And this is basically just going to return all the 14 00:00:35,204 --> 00:00:38,674 users that we have in this kind of fake database. 15 00:00:38,674 --> 00:00:42,742 So return users.values, 16 00:00:42,742 --> 00:00:47,840 and put those into a new, say linked list. 17 00:00:47,840 --> 00:00:50,670 [No Audio] 18 00:00:50,670 --> 00:00:52,961 So whenever we call find all, it's going to return all 19 00:00:52,961 --> 00:00:54,996 the users. So that's good enough now for the 20 00:00:54,996 --> 00:00:56,595 UserRepository and UserDomain class. 21 00:00:56,595 --> 00:00:57,814 So let's move on.