My entity setters are all private so I use constructors to initialize my entities.
Now I need to write unit tests and I need to instantiate multiple objects. The "issue" is that I don't want to create constructors just to instantiate my entities with some random data. Instead, I would like to leverage C# easy way to do this:
var user = new User() { Name = "John", LastName = "Smith" };
One option I considered is to make the setters internal and set InternalsVisibleTo. But I don't want other entities to set these properties.
I don't think I can do this with Moq, though. Is there any other way to go around this?