/// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel(IAzureVideoService azureVideoService)
        {
            this.azureVideoService = azureVideoService;
            this.GoToVideoCommand = new RelayCommand<object>(NavigateToVideoDetailPage);
            this.IsLoading = true;
            this.Videos = new ObservableCollection<Video>();

            if (IsInDesignMode)
            {
                var videos = azureVideoService.GetAllVideosAsync().Result;
                this.Videos.Clear();

                foreach(var video in videos)
                {
                    this.Videos.Add(video);
                }
            }
            else
            {
                // Code runs "for real"
            }
        }
 /// <summary>
 /// Initializes a new instance of the VideoDetailViewModel class.
 /// </summary>
 public VideoDetailViewModel(IAzureVideoService azureVideoService)
 {
     this.azureVideoService = azureVideoService;
     this.IsLoading = true;
 }