Skip to content

Fix generation failing when the target type has at least one ctor with parameters#31

Merged
StefH merged 2 commits intoStefH:mainfrom
iam-mholle:#30_builder_generation_fails_if_target_has_ctor_with_parameters
May 20, 2022
Merged

Fix generation failing when the target type has at least one ctor with parameters#31
StefH merged 2 commits intoStefH:mainfrom
iam-mholle:#30_builder_generation_fails_if_target_has_ctor_with_parameters

Conversation

@iam-mholle
Copy link
Copy Markdown
Contributor

Fixes #30

The test generating a builder for DateTime was actually incorrect, as DateTime does have a public parameterless ctor, thus the generation should succeed. I did remove the test, but if you want I can leave it in.

Comment thread tests/FluentBuilderGeneratorTests/DTO/UserWithParameterizedConstructor.cs Outdated
@iam-mholle iam-mholle force-pushed the #30_builder_generation_fails_if_target_has_ctor_with_parameters branch from e3bd41b to 16c91b9 Compare May 20, 2022 18:44
@iam-mholle iam-mholle requested a review from StefH May 20, 2022 18:46
@StefH StefH merged commit 8bfb25f into StefH:main May 20, 2022
@iam-mholle iam-mholle deleted the #30_builder_generation_fails_if_target_has_ctor_with_parameters branch May 20, 2022 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Builder generation fails if the target type has at least one ctor with parameters

2 participants