Skip to content

Commit

Permalink
Merge pull request #816 from DeluxeAlonso/feature/unit-tests
Browse files Browse the repository at this point in the history
Feature/unit tests
  • Loading branch information
DeluxeAlonso authored Nov 1, 2023
2 parents 114789e + 4bf0eac commit 3ef417f
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,23 @@ final public class RemoteDataSource: RemoteDataSourceProtocol {
}

public func movieDataSource() -> MovieRemoteDataSourceProtocol {
let client = MovieClient()
return MovieRemoteDataSource(client: client)
MovieRemoteDataSource(client: MovieClient())
}

public func genreDataSource() -> GenreRemoteDataSourceProtocol {
let client = GenreClient()
return GenreRemoteDataSource(client: client)
GenreRemoteDataSource(client: GenreClient())
}

public func accountDataSource() -> AccountRemoteDataSourceProtocol {
let client = AccountClient()
return AccountRemoteDataSource(client: client)
AccountRemoteDataSource(client: AccountClient())
}

public func authDataSource() -> AuthRemoteDataSourceProtocol {
let authClient = AuthClient()
let accountClient = AccountClient()
return AuthRemoteDataSource(authClient: authClient, accountClient: accountClient)
AuthRemoteDataSource(authClient: AuthClient(), accountClient: AccountClient())
}

public func configurationDataSource() -> ConfigurationRemoteDataSourceProtocol {
let configurationClient = ConfigurationClient()
return ConfigurationRemoteDataSource(client: configurationClient)
ConfigurationRemoteDataSource(client: ConfigurationClient())
}

}

0 comments on commit 3ef417f

Please sign in to comment.