News for hackers. Stuff that matters.
Re:The Rust I wanted had no future by rjbwork on Monday June 05, 2023 @04:10PM (#36202838)
>Isn't this just mostly an issue with mock testing in C#

Yes. You have two choices: Interface implemented once, or virtual on all your public members.

I personally think Interface is the sane choice.

Would be nice if the .NET devs let us mock POCO's though...

Re:The Rust I wanted had no future by hadrien01 on Monday June 05, 2023 @05:46PM (#36204319)
You can mock (well, "fake") POCOs with packages like AutoFixture that use reflection to generate mostly fake data, depending on what you need. You don't need interfaces or virtual, but you do need public getters unfortunately.