public void GetProperties()
        {
            var customer = new Customer()
            {
                Id = 12, Lastname = "Skalas", Firstname = "Kostas"
            };
            var descriptor = GenericEntityDescriptor.FromEntity(customer);

            Assert.IsTrue(descriptor.HasFieldWithValue("Id", "12"));
            Assert.IsTrue(descriptor.HasFieldWithValue("Lastname", "Skalas"));
            Assert.IsTrue(descriptor.HasFieldWithValue("Firstname", "Kostas"));
        }
Exemple #2
0
 public GenericEntityDescriptor GetDescriptor() => GenericEntityDescriptor.FromEntity(this);