Пример #1
0
        public void AssertFieldDataInicioPrecoProduto()
        {
            target = new FieldExtractor(typeof(PrecoProduto));

            Dictionary<string, Field> fields = target.Extract();
            Assert.That(fields["data_inicio"].Name, Is.EqualTo("DataInicio"));
            Assert.That(fields["data_inicio"].Type.Name, Is.EqualTo("DateTime"));
            Assert.That(fields["data_inicio"].IsProperty, Is.EqualTo(false));
        }
Пример #2
0
        public void AssertFieldIdPrecoProduto()
        {
            target = new FieldExtractor(typeof(PrecoProduto));

            Dictionary<string, Field> fields = target.Extract();
            Assert.That(fields["id"].Name, Is.EqualTo("Id"));
            Assert.That(fields["id"].Type.Name, Is.EqualTo("Int32"));
            Assert.That(fields["id"].IsProperty, Is.EqualTo(true));
        }
Пример #3
0
        public void AssertFieldPrecoPrecoProduto()
        {
            target = new FieldExtractor(typeof(PrecoProduto));

            Dictionary<string, Field> fields = target.Extract();
            Assert.That(fields["preco"].Name, Is.EqualTo("Preco"));
            Assert.That(fields["preco"].Type.Name, Is.EqualTo("Double"));
            Assert.That(fields["preco"].IsProperty, Is.EqualTo(true));
            Assert.That(fields["preco"].IsEntity, Is.EqualTo(false));
        }
Пример #4
0
 public void SetUp()
 {
     target = new FieldExtractor(typeof(Produto));
 }