Пример #1
0
        public void RenderPanelWithListOfVideos()
        {
            Console.WriteLine("Fetching data with list of videos....");
            var data = _service.GetVideos();

            Console.WriteLine("Rendering the panel holding the list of videos....");
        }
Пример #2
0
 public IEnumerable <object> GetVideos()
 {
     if (_cachedVideos == null || _needRequest)
     {
         _cachedVideos = _service.GetVideos();
     }
     return(_cachedVideos);
 }
Пример #3
0
 public IEnumerable <Video> RenderListPanel()
 {
     return(_service.GetVideos());
 }