Exemplo n.º 1
0
        public void T01_Create()
        {
            var to = new TagAddRemove(_ta);

            to.Add.Add(TAG_GROUP, new[] { _remlist.First() });
            OpTest(_ua.ChannelTags(to));
        }
Exemplo n.º 2
0
        public void T05_Delete()
        {
            var to = new TagAddRemove(_ta);

            to.Remove.Add(TAG_GROUP, _remlist);
            OpTest(_ua.ChannelTags(to));

            Thread.Sleep(5000);
            ChannelResponse cr = _ua.Channel(_ta.IosChannel);

            OpTest(cr);
            Assert.IsNotNull(cr.Channel);
            Assert.That(!cr.Channel.TagGroups.ContainsKey(TAG_GROUP) || cr.Channel.TagGroups[TAG_GROUP].Count == 0);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Manipulate tags using channel ids
        /// </summary>
        /// <param name="operations">operation instruction</param>
        /// <returns>standard response</returns>
        public BaseResponse ChannelTags(TagAddRemove operations)
        {
            var request = new ChannelTagRequest(operations, _cfg);

            return(SendRequest(request));
        }