import '../domain/order.dart';
import '../domain/orders_repository.dart';

/// Use case: retrieve all orders from the repository.
class GetOrders {
  final OrdersRepository repository;

  GetOrders(this.repository);

  Future<List<Order>> call() => repository.getOrders();
}
