// Path: base/src/main/java/com/tobi/movies/Converter.java
// public interface Converter<T, R> {
// 
//     R convert(T input);
// }


import com.tobi.movies.Converter;
import com.tobi.movies.backend.Backend;
import dagger.Module;
import dagger.Provides;
package com.tobi.movies.posterdetails;



@Module()
class TestDetailsApiModule {

    @Provides
    MovieDetailsApiDatasource provideDetailsApiSource(Backend backend) {
        return new MovieDetailsApiDatasource(backend);
    }

    @Provides
    MovieDetailsRepository providesDetailsRepository(MovieDetailsApiDatasource apiDatasource,
// Path: base/src/main/java/com/tobi/movies/Converter.java
// public interface Converter<T, R> {
// 
//     R convert(T input);
// }


// Path: app/src/androidTest/java/com/tobi/movies/posterdetails/TestDetailsApiModule.java
import com.tobi.movies.Converter;
import com.tobi.movies.backend.Backend;
import dagger.Module;
import dagger.Provides;

package com.tobi.movies.posterdetails;



@Module()
class TestDetailsApiModule {

    @Provides
    MovieDetailsApiDatasource provideDetailsApiSource(Backend backend) {
        return new MovieDetailsApiDatasource(backend);
    }

    @Provides
    MovieDetailsRepository providesDetailsRepository(MovieDetailsApiDatasource apiDatasource,
                                                     Converter<ApiMovieDetails, MovieDetails> converter) {