import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:health_app/providers/backoffice_refresh_providers.dart';

void main() {
  test('back-office refresh signals advance independently', () {
    final container = ProviderContainer();
    addTearDown(container.dispose);

    expect(container.read(adminDoctorsRefreshSignalProvider), 0);
    expect(container.read(doctorFollowupsRefreshSignalProvider), 0);

    container.read(adminDoctorsRefreshSignalProvider.notifier).trigger();

    expect(container.read(adminDoctorsRefreshSignalProvider), 1);
    expect(container.read(doctorFollowupsRefreshSignalProvider), 0);
  });
}
