tdd 진행
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user