How to correctly implement VerifyAllColumnsBound = true and TableAliases #424
Unanswered
CeeSharper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To compensate for mis-spelled columns in the gherkin leading to false test passes, I was hoping that the TableAliases would be the trick to allow for spaces in the column names since it seems that using the VerifyAllColumnsBound = true takes away the flexibility of CreateSet or CreateInstance. However using the syntax provided in the docs '[]?' as an optional space does not seem to work. Has anyone been successful using TableAliases?
Example:
var foo = table.CreateInstance<Foo>(new InstanceCreationOptions { VerifyAllColumnsBound = true })
This reports the following error
Invalid pattern 'My[]?Long[]?Property[]?Name' at offset #. Unterminated [] set.
However attempting to use a regex for optional space like this throws Reqnroll.ColumnCouldNotBeBoundException same as if the TableAliases were not present at all.
![image](https://private-user-images.githubusercontent.com/7253273/407821161-da93ed1b-0cd0-4dee-b44f-8575e3daa7e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NzQxMTUsIm5iZiI6MTczODg3MzgxNSwicGF0aCI6Ii83MjUzMjczLzQwNzgyMTE2MS1kYTkzZWQxYi0wY2QwLTRkZWUtYjQ0Zi04NTc1ZTNkYWE3ZTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDZUMjAzMDE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWE0YTEwYWY1YTc5ZTU5YjQ0OTJmYTllNjc2NWJmYTc0OTQ0ZjEwMmIxNzkwNTFkM2I2YzZlYzdiZGY3NjM0MyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.QI-uznkLXbsaEo4sUWPag8O7e7ltHFbOsKRTTRMknCs)
Beta Was this translation helpful? Give feedback.
All reactions