Beispiel #1
0
        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;
        }
Beispiel #3
0
 public async Task WhenICallTheEndpointWithGetMethod(string endpoint)
 {
     response = await clientProvider.GetAsync(endpoint);
 }
Beispiel #4
0
 public void WhenICallTheEndpointWithGetMethod(string endpoint)
 {
     clientProvider.GetAsync(endpoint);
 }