This class represents the object that is received when requesting topics from the desk.com API.
Author: Daniel Saidi [[email protected]] Link: http://github.com/danielsaidi/desk-csharp-sdk
Inheritance: EntityBase
コード例 #1
0
 public void AssertTopic(Topic topic, int id, string name, string description, bool showInPortal, int position)
 {
     Assert.That(topic.Id, Is.EqualTo(id));
     Assert.That(topic.Name, Is.EqualTo(name));
     Assert.That(topic.Description, Is.EqualTo(description));
     Assert.That(topic.ShowInPortal, Is.EqualTo(showInPortal));
     Assert.That(topic.Position, Is.EqualTo(position));
 }
コード例 #2
0
        public void Topic_ShouldParseGetTopicsJsonData()
        {
            var topic = new Topic(JsonConvert.DeserializeObject(TopicTestData.GetTopicsJson));

            AssertTopic(topic, 1, "Sample :: General", "Sample Topic Description :: Information about our company", true, 1);
        }