private async void WishlistForm_Load(object sender, EventArgs e)
		{
			client = new MoviesClient(new HttpClient(new FakeResponseHandler()) {BaseAddress = new Uri("http://test.com/api/")});
			client.OAuthAccessToken = "sadasdasdasdasdasdasd4545345345343asd";
			var wishlist = await client.Movies.Wishlist.Get();
			dataGridView1.DataSource = wishlist.Content;
			FormBorderStyle = FormBorderStyle.FixedDialog;
		}
Exemplo n.º 2
0
		public async Task<IList<MoviesGetOKResponseContent>> GetMovies()
	    {
			var fakeResponseHandler = new FakeResponseHandler();
			var httpClient = new HttpClient(fakeResponseHandler) {BaseAddress = new Uri("http://test.com/api/")};

		    client = new MoviesClient(httpClient);
		    client.SchemaValidation.RaiseExceptions = false;
		    var movies = await client.Movies.Get();
		    return movies.Content;
	    }
Exemplo n.º 3
0
 internal Search(MoviesClient proxy)
 {
     this.proxy = proxy;
 }
Exemplo n.º 4
0
 internal Movies(MoviesClient proxy)
 {
     this.proxy = proxy;
 }
Exemplo n.º 5
0
 internal Available(MoviesClient proxy)
 {
     this.proxy = proxy;
 }
Exemplo n.º 6
0
 internal Rented(MoviesClient proxy)
 {
     this.proxy = proxy;
 }
Exemplo n.º 7
0
 internal Wishlist(MoviesClient proxy)
 {
     this.proxy = proxy;
 }
Exemplo n.º 8
0
 internal Return(MoviesClient proxy)
 {
     this.proxy = proxy;
 }