We are using NBuilder for generating test data for our tests. We have a few models with private setters. So setting thos properties is only possible throughout the constructor. The problem is that we get the following error from NBuilder:
CompanyAddressViewModel does not have a default parameterless constructor
I understand the error. Do I really need to create a default constructor in my class?
Here is my NBuilder code:
Builder<CompanyAddressViewModel>.CreateNew().Build()