private async Task <PhotosResponse> GetPhotosResponse(int page)
        {
            var methodName = _view.ShowAllPhotos ? Methods.PeopleGetPhotos : Methods.PeopleGetPublicPhotos;

            return
                (await
                 _logic.GetPhotosAsync(methodName, _view.User, _view.Preferences, page, _progress));
        }
Пример #2
0
        public async Task GetPublicPhotos_WillGetPublicPhotos()
        {
            WaitTillLoggedIn();
            var publicPhotos   = new Photoset(null, null, null, null, 0, 0, 0, null, null, PhotosetType.Public, null);
            var photosResponse =
                await _logic.GetPhotosAsync(publicPhotos, _user, Preferences.GetDefault(), 1,
                                            new Progress <ProgressUpdate>());

            Assert.IsNotNull(photosResponse.Photos);
        }
        public async void GetPublicPhotos_WillGetPublicPhotos()
        {
            WaitTillLoggedIn();
            var photosResponse =
                await
                _logic.GetPhotosAsync(Methods.PeopleGetPublicPhotos, _user, Preferences.GetDefault(), 1,
                                      null);

            Assert.IsNotNull(photosResponse.Photos);
        }
 private async Task <PhotosResponse> GetPhotosResponse(int page)
 {
     return
         (await _logic.GetPhotosAsync(_view.CurrentPhotoset, _view.User, _view.Preferences, page, _progress));
 }
Пример #5
0
 private async Task <PhotosResponse> GetPhotosResponse(Photoset album, string albumProgress, int page = 1)
 {
     return(await _browserLogic.GetPhotosAsync(album, _view.User, _view.Preferences, page, _progress, albumProgress));
 }