You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Init OData.Type on complex and entity types. (#219)
**modified: Templates/CSharp/Model/ComplexType.cs.tt**
Add public cstor and ODataType initialization for
non-abstract complextypes.
**modified: Templates/CSharp/Model/EntityType.cs.tt**
Add public cstor and ODataType initialization for
non-abstract entitytypes.
modified: test/Typewriter.Test/Given_a_valid_metadata_file_to_Typewriter.cs
modified: test/Typewriter.Test/Resources/dirtyMetadata.xml
@@ -140,5 +141,144 @@ public void It_generates_dotNet_client_with_commented_out_code_comments()
140
141
}
141
142
Assert.IsTrue(hasTestString,$"The expected test token string, '{testString}', was not set in the generated test file. We are not correctly handling the \r\n coming from the annotations.");
Assert.IsTrue(hasTestString,$"The expected test token string, '{testString}', was not set in the generated test file. We didn't properly generate the setter code in the cstor.");
180
+
Assert.IsTrue(hasCstorString,$"The expected test token cstor string, '{testCstorString}', was not set in the generated test file. We didn't properly generate the cstor code.");
Assert.IsFalse(hasTestString,$"The unexpected test token string, '{testString}', was set in the generated test file. We incorrectly generated the setter code in the cstor.");
Assert.IsTrue(hasTestString,$"The expected test token string, '{testString}', was not set in the generated test file. We didn't properly generate the cstor code.");
Assert.IsTrue(hasTestString,$"The expected test token string, '{testString}', was not set in the generated test file. We didn't properly generate the cstor code.");
281
+
Assert.IsFalse(hasTestODataInitString,$"The unexpected test token string, '{testODataInitString}', was set in the generated test file. We didn't properly generate the cstor code.");
0 commit comments