Exemplo n.º 1
0
        protected bool IsChannelMappedToCard(Channel dbChannel, Card card)
        {
            //check if channel is mapped to this card and that the mapping is not for "Epg Only"
            bool isChannelMappedToCard = _businessLayer.IsChannelMappedToCard(dbChannel, card, false);

            return(isChannelMappedToCard);
        }
        //TODO: move these helpers to other static classes

        private void SetupChannelMapping(ITvCardHandler cardHandler1, ChannelMap channelMap, TvBusinessLayer businessLayer, Channel channel)
        {
            Isolate.WhenCalled(() => channelMap.EpgOnly).WillReturn(false);
            Isolate.WhenCalled(() => channelMap.ReferencedCard().DevicePath).WillReturn(cardHandler1.DataBaseCard.DevicePath);

            TvDatabase.Card card = cardHandler1.DataBaseCard;
            Isolate.WhenCalled(() => businessLayer.IsChannelMappedToCard(channel, card, false)).WillReturn(true);
        }
Exemplo n.º 3
0
        public static bool IsChannelMappedToCard(Channel dbChannel, Card card)
        {
            bool isChannelMappedToCard = _businessLayer.IsChannelMappedToCard(dbChannel, card, false);

            return(isChannelMappedToCard);
        }