import 'package:provider/provider.dart';
import 'package:provider/single_child_widget.dart';

import 'mock_services.dart';

/// 공통 Provider 프리셋 모음
/// - 위젯 테스트에서 필요한 Provider 세트를 손쉽게 구성하기 위한 헬퍼
class ProviderPresets {
  const ProviderPresets._();

  /// ClubSettingsScreen 시나리오에 필요한 Provider 세트
  /// - AuthService, ClubService, MemberService 순으로 등록
  static List<SingleChildWidget> clubSettings({
    required MockAuthService auth,
    required MockClubService club,
    required MockMemberService members,
  }) {
    return [
      ChangeNotifierProvider<MockAuthService>.value(value: auth),
      ChangeNotifierProvider<MockClubService>.value(value: club),
      ChangeNotifierProvider<MockMemberService>.value(value: members),
    ];
  }
}
