public static async Task <List <Movie> > GetMoviesAsync() { var httpClientProvider = new HttpClientProvider <List <Movie> >(); var movies = await httpClientProvider.GetAsync(Config.MoviesUrl); return(movies); }
public static async Task<List<Movie>> GetMoviesAsync() { var httpClientProvider = new HttpClientProvider<List<Movie>>(); var movies = await httpClientProvider.GetAsync(Config.MoviesUrl); return movies; }
public async Task WhenICallTheEndpointWithGetMethod(string endpoint) { response = await clientProvider.GetAsync(endpoint); }
public void WhenICallTheEndpointWithGetMethod(string endpoint) { clientProvider.GetAsync(endpoint); }