use std::sync::Arc;
use crate::bootstrap::infrastructure::Repositories;
use crate::bootstrap::services::geolocation::GeoLocationServiceImpl;
use crate::domain::services::geo_location::GeoLocationService;
use crate::domain::services::team_service::TeamService;
pub(super) fn init_team_services(
repositories: &Repositories,
http_client: &Arc<reqwest::Client>,
) -> (Arc<TeamService>, Arc<dyn GeoLocationService>) {
let geo_location_service = Arc::new(GeoLocationServiceImpl::new(http_client.clone()));
let team_service = Arc::new(TeamService::new(
geo_location_service.clone(),
repositories.geo_restriction_repo.clone(),
));
(team_service, geo_location_service)
}