public void ReadGlashardNetwork() { configuration.ReadFromWeb(); configuration.Should().NotBeNull(); configuration.ResolveChannel("NPO1").number.Should().NotBe(-1); }
private void LoadConfiguration() { _configuration.ReadFromWeb(); _info.AuthenticationSuccessfull = _configuration.AuthenticationSuccessfull; _info.LastAuthentication = DateTime.Now; _info.Channels = _configuration.GetChannelInfo(); }
public void AddChannel() { //Add channel 'rtlz' with url 'rtp://224.0.251.115:8230' to TvHeadend TvhCommunication Factory() => new TvhCommunication(_logger, _settings); var model = new TvhModel(_logger, _settings, Factory); model.ReadFromWeb(); model.AddChannel(8, "rtlz", "rtp://224.0.251.115:8230", true); }