tdd 진행

This commit is contained in:
2025-08-09 03:09:17 +09:00
parent ed8c7eacba
commit 6033d59590
74 changed files with 17804 additions and 395 deletions
+22 -1
View File
@@ -10,9 +10,30 @@ class ScoreService with ChangeNotifier {
bool _isLoading = false;
String? _token;
String? _clubId;
final ApiService _apiService = ApiService();
ApiService _apiService = ApiService();
String? _memberId;
String? _eventId;
// 테스트용 생성자
ScoreService.forTest(ApiService apiService, {String? clubId, String? memberId, String? eventId}) {
_apiService = apiService;
if (clubId != null) {
_clubId = clubId;
}
if (memberId != null) {
_memberId = memberId;
}
if (eventId != null) {
_eventId = eventId;
}
}
// 테스트용 getter
String? get testMemberId => _memberId;
String? get testEventId => _eventId;
// 기본 생성자
ScoreService();
List<Score> get scores => [..._scores];
bool get isLoading => _isLoading;