|
@@ -8,15 +8,17 @@ public class ClassRecordGeneratorTests
|
|
|
[Fact]
|
|
|
public void BuildTest()
|
|
|
{
|
|
|
- var test = new ClassRecordGenerator("TestNamespace", "Test");
|
|
|
+ var test = new ClassRecordGenerator("TestNamespace", "test Class Name");
|
|
|
test.Usings.Add("ExcelORM");
|
|
|
-
|
|
|
- var property = new Property("TestProperty", "string");
|
|
|
- property.Attributes.Add(new AttributeElement("Column", "Test Property"));
|
|
|
+
|
|
|
+ const string firstPropertyName = "test Property";
|
|
|
+ var property = new Property(firstPropertyName, "string");
|
|
|
+ property.Attributes.Add(new AttributeElement("Column", firstPropertyName));
|
|
|
test.Properties.Add(property.Name, property);
|
|
|
|
|
|
- var secondProperty = new Property("SecondProperty", "int");
|
|
|
- secondProperty.Attributes.Add(new AttributeElement("Column", "Second Property"));
|
|
|
+ const string secondPropertyName = "second Property";
|
|
|
+ var secondProperty = new Property(secondPropertyName, "int");
|
|
|
+ secondProperty.Attributes.Add(new AttributeElement("Column", secondPropertyName));
|
|
|
test.Properties.Add(secondProperty.Name, secondProperty);
|
|
|
|
|
|
var result = test.Build();
|