In order to satisfy the interface 'ITestData<TEntity, TTestData> derivatives have to:
...
public static Asset Default => new();
...
But creating a new instance every time is useless.
Solution:
Create a static backing field that holds the immutable default value and accessing the property only returns the backing field.
Optional use a singleton to defer its creation.
In order to satisfy the interface
'ITestData<TEntity, TTestData>
derivatives have to:But creating a new instance every time is useless.
Solution: Create a static backing field that holds the immutable default value and accessing the property only returns the backing field. Optional use a singleton to defer its creation.