IsChannelMappedToCard() public method

public IsChannelMappedToCard ( TvDatabase.Channel dbChannel, TvDatabase.Card card, bool forEpg ) : bool
dbChannel TvDatabase.Channel
card TvDatabase.Card
forEpg bool
return bool
コード例 #1
0
    //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);      

    }