コード例 #1
0
ファイル: GenreProvider.cs プロジェクト: dvb-dev/beezytest
        /// <summary>
        /// Loads the full list of genres into the cache
        /// As the genre list is very limited and will not change rapidly, the entire list is cached locally the first time it's needed
        /// NOTE: For simplicity, language en-US is assumed.
        /// </summary>
        /// <returns></returns>
        private async Task Initialize()
        {
            LoadGenreListAction action = new LoadGenreListAction()
                                         .SetLanguage("en-US"); //Hard-coded default for now;
            var genreList = await action.Execute(_Client);

            _Cache.StoreItems(genreList.genres);
            _Initialized = true;
        }
コード例 #2
0
 public void TearDown()
 {
     TestObject = null;
 }
コード例 #3
0
 public void Setup()
 {
     TestObject = new LoadGenreListAction();
 }