I currently trying to run a unit test, where I need AutoFixture to generate an JsonDocument property.
But this is not possible since
AutoFixture.ObjectCreationExceptionWithPath : AutoFixture was unable to create an instance from System.Text.Json.Utf8JsonReader&, most likely because it has no public constructor, is an abstract or non-public type.
How do I using AutoFixture autocreate a class, which contains the JsonDocument.
The class I want to create using AutoFixture is pretty simple, all of the property are of simple type, except for the JsonDocument.
public class Car
{
public string Name;
public int Age;
public JsonDocument GeneralCarInfo;
}