public void FieldsToArrayOfObject()
        {
            var company = new Company();

            company.Fields.Add(new Field
            {
                FieldType = 3,
                Id        = 555,
                IsSystem  = false,
                Name      = "",
                Values    = new List <FieldValue>
                {
                    new FieldValue {
                        Enum = 654, Value = "OOO"
                    },
                    new FieldValue {
                        Enum = 345, Value = "GGG"
                    },
                    new FieldValue {
                        Enum = 678, Value = "EEE"
                    }
                }
            });

            Assert.IsInstanceOfType(array.Adapt <CompanyUpdateDTO>().CustomFields[0].Values, typeof(ArrayList));
            Assert.AreEqual(company.Adapt <CompanyUpdateDTO>().CustomFields[0].Values.Count, 3);
            Assert.AreEqual(((dynamic)company.Adapt <CompanyUpdateDTO>().CustomFields[0].Values.ToArray()[0]).value, "OOO");
        }
 [TestMethod] public void Id() => Assert.AreEqual(array.Adapt <CompanyUpdateDTO>().Id, 8663699);
 [TestMethod] public void Name() => Assert.AreEqual(array.Adapt <CompanyAddDTO>().Name, "Company Name");
 [TestMethod] public void Id() => Assert.AreEqual(company.Adapt <CompanyGetDTO>().Id, 8663699);