public void PostChannelsChannelIdSubscriptionsTest() { // TODO: add unit test for the method 'PostChannelsChannelIdSubscriptions' string channelId = null; // TODO: replace null with proper value List <ChannelTopic> body = null; // TODO: replace null with proper value var response = instance.PostChannelsChannelIdSubscriptions(channelId, body); Assert.IsInstanceOf <ChannelTopicEntityListing> (response, "response is ChannelTopicEntityListing"); }
/// <summary> /// Adds a subsciption to the specified topic. Events received on this topic will be cast to the given type. /// </summary> /// <param name="topic">The notification topic to add</param> /// <param name="type">The <see cref="Type"/> to cast notifications on this topic to</param> public void AddSubscription(string topic, Type type) { _notificationsApi.PostChannelsChannelIdSubscriptions(Channel.Id, new List <ChannelTopic>() { new ChannelTopic(topic) }); _typeMap.Add(topic.ToLowerInvariant(), type); }