Hi We have experienced a problem while implementin...
# pactflow
p
Hi We have experienced a problem while implementing a pact test from consumer side. Although our C#.Net Object has all properties in PascalCase, And when our pact test execution is complete, it converts all the properties into camel case if the CamelCasePropertyNamesContractResolver is used. However, this conversion does not apply to C# Anonymous Types. For instance: We have a property public object BusinessRules { get; set; } Matcher code BusinessRules = Match.Type(new { Comments = Match.Type("This is a comment"), }) For some reason only businessRules is properly converted into camelcase. But Comments remain in Pascal case. Any Specific reason why the CamelCasePropertyNamesContractResolver is not applied to Anonymous Types #C9UTHV2AD
y
Hey @Prashanth That question is probably best asked on the pact-net repository either via an issue or discussion, where the author would see that as it is an implementation question of the library ( He doesn’t view this channel much if at all 👍 ) https://github.com/pact-foundation/pact-net
👍 1