Exemplo n.º 1
0
        public void ReadGlashardNetwork()
        {
            configuration.ReadFromWeb();

            configuration.Should().NotBeNull();
            configuration.ResolveChannel("NPO1").number.Should().NotBe(-1);
        }
Exemplo n.º 2
0
 private void LoadConfiguration()
 {
     _configuration.ReadFromWeb();
     _info.AuthenticationSuccessfull = _configuration.AuthenticationSuccessfull;
     _info.LastAuthentication        = DateTime.Now;
     _info.Channels = _configuration.GetChannelInfo();
 }
Exemplo n.º 3
0
        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);
        }