예제 #1
0
        public void TestPollConversion()
        {
            var rawPoll = new Poll
            {
                Name = "Poll name",
                Title = "Poll title",
                TotalVotes = 1234
            };

            var poll = new BGGThings.Poll(rawPoll);

            Assert.AreEqual("Poll name", poll.Name);
            Assert.AreEqual("Poll title", poll.Title);
            Assert.AreEqual(1234, poll.Votes);
        }
예제 #2
0
 public Poll(Raw.Things.Poll rawPoll)
 {
     Name  = rawPoll.Name;
     Title = rawPoll.Title;
     Votes = rawPoll.TotalVotes;
 }