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)); }
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)); }
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)); }
public void SetUp() { target = new FieldExtractor(typeof(Produto)); }