@@ -65,7 +65,7 @@ class RequestId {
65
65
HtDataRepository <Headline > _createHeadlineRepository () {
66
66
print ('Initializing Headline Repository...' );
67
67
final initialData = headlinesFixturesData.map (Headline .fromJson).toList ();
68
- final client = HtDataInMemoryClient <Headline >(
68
+ final client = HtDataInMemory <Headline >(
69
69
toJson: (i) => i.toJson (),
70
70
getId: (i) => i.id,
71
71
initialData: initialData,
@@ -77,7 +77,7 @@ HtDataRepository<Headline> _createHeadlineRepository() {
77
77
HtDataRepository <Category > _createCategoryRepository () {
78
78
print ('Initializing Category Repository...' );
79
79
final initialData = categoriesFixturesData.map (Category .fromJson).toList ();
80
- final client = HtDataInMemoryClient <Category >(
80
+ final client = HtDataInMemory <Category >(
81
81
toJson: (i) => i.toJson (),
82
82
getId: (i) => i.id,
83
83
initialData: initialData,
@@ -89,7 +89,7 @@ HtDataRepository<Category> _createCategoryRepository() {
89
89
HtDataRepository <Source > _createSourceRepository () {
90
90
print ('Initializing Source Repository...' );
91
91
final initialData = sourcesFixturesData.map (Source .fromJson).toList ();
92
- final client = HtDataInMemoryClient <Source >(
92
+ final client = HtDataInMemory <Source >(
93
93
toJson: (i) => i.toJson (),
94
94
getId: (i) => i.id,
95
95
initialData: initialData,
@@ -101,7 +101,7 @@ HtDataRepository<Source> _createSourceRepository() {
101
101
HtDataRepository <Country > _createCountryRepository () {
102
102
print ('Initializing Country Repository...' );
103
103
final initialData = countriesFixturesData.map (Country .fromJson).toList ();
104
- final client = HtDataInMemoryClient <Country >(
104
+ final client = HtDataInMemory <Country >(
105
105
toJson: (i) => i.toJson (),
106
106
getId: (i) => i.id,
107
107
initialData: initialData,
@@ -113,7 +113,7 @@ HtDataRepository<Country> _createCountryRepository() {
113
113
// New repositories for user settings and preferences
114
114
HtDataRepository <UserAppSettings > _createUserAppSettingsRepository () {
115
115
print ('Initializing UserAppSettings Repository...' );
116
- final client = HtDataInMemoryClient <UserAppSettings >(
116
+ final client = HtDataInMemory <UserAppSettings >(
117
117
toJson: (i) => i.toJson (),
118
118
getId: (i) => i.id,
119
119
// User settings are created on demand, no initial fixture needed
@@ -125,7 +125,7 @@ HtDataRepository<UserAppSettings> _createUserAppSettingsRepository() {
125
125
HtDataRepository <UserContentPreferences >
126
126
_createUserContentPreferencesRepository () {
127
127
print ('Initializing UserContentPreferences Repository...' );
128
- final client = HtDataInMemoryClient <UserContentPreferences >(
128
+ final client = HtDataInMemory <UserContentPreferences >(
129
129
toJson: (i) => i.toJson (),
130
130
getId: (i) => i.id,
131
131
// User preferences are created on demand, no initial fixture needed
@@ -139,7 +139,7 @@ HtDataRepository<AppConfig> _createAppConfigRepository() {
139
139
final initialData = [
140
140
AppConfig .fromJson (appConfigFixtureData),
141
141
]; // Assuming one config
142
- final client = HtDataInMemoryClient <AppConfig >(
142
+ final client = HtDataInMemory <AppConfig >(
143
143
toJson: (i) => i.toJson (),
144
144
getId: (i) => i.id,
145
145
initialData: initialData,
@@ -180,7 +180,7 @@ Handler middleware(Handler handler) {
180
180
// --- Auth Dependencies ---
181
181
// User Repo (using InMemory for now)
182
182
final userRepository = HtDataRepository <User >(
183
- dataClient: HtDataInMemoryClient <User >(
183
+ dataClient: HtDataInMemory <User >(
184
184
toJson: (u) => u.toJson (),
185
185
getId: (u) => u.id,
186
186
// No initial user data fixture needed for auth flow typically
0 commit comments