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); }
public void SetUp() { _logger = A.Fake <ILog>(); _settings = new TvHeadendIntegration.Settings(_logger) { Username = "******", Password = "******", TvhNetworkName = "KPN", WebUrl = "http://192.168.10.54:9981" }; configuration = new TvhModel(_logger, _settings, () => new TvhCommunication(_logger, _settings)); }
public Program(ILog logger, Settings settings, UpdateEpg epg, LinuxSignal signal, ModuleCommunication communication, TvhModel tvhConfiguration) : base(logger, signal, communication) { _settings = settings; _epg = epg; _configuration = tvhConfiguration; }