Exemplo n.º 1
0
        public void TestNameConversion()
        {
            var rawName = new Name
            {
                Type = "NameType",
                SortIndex = 2,
                value = "Name value"
            };

            var name = new BGGThings.Name(rawName);

            Assert.AreEqual("NameType", name.Type);
            Assert.AreEqual(2, name.SortIndex);
            Assert.AreEqual("Name value", name.Value);
        }
Exemplo n.º 2
0
 public Name(Raw.Things.Name rawName)
 {
     Type      = rawName.Type;
     SortIndex = rawName.SortIndex;
     Value     = rawName.value;
 }