예제 #1
0
        public static async Task <List <Movie> > GetMoviesAsync()
        {
            var httpClientProvider = new HttpClientProvider <List <Movie> >();
            var movies             = await httpClientProvider.GetAsync(Config.MoviesUrl);

            return(movies);
        }
예제 #2
0
        public static async Task<List<Movie>> GetMoviesAsync()
        {
            var httpClientProvider = new HttpClientProvider<List<Movie>>();
            var movies = await httpClientProvider.GetAsync(Config.MoviesUrl);

            return movies;
        }
예제 #3
0
 public async Task WhenICallTheEndpointWithGetMethod(string endpoint)
 {
     response = await clientProvider.GetAsync(endpoint);
 }
예제 #4
0
 public void WhenICallTheEndpointWithGetMethod(string endpoint)
 {
     clientProvider.GetAsync(endpoint);
 }