public void GetChannelsTest() { var mds = App.Config.Content.ContentProviders[0].MediaServicesSets[0].MediaServicesAccounts[0]; var controller = new ChannelsController(); try { var channels = controller.GetAllChannels(mds.AccountName); Assert.IsNotNull(channels); Assert.IsTrue(channels.Count() >= 0); } catch (Exception ex) { Assert.Fail("Excetion: {0}", ex); } }