I would like to use Autofixture to create an instance of a class which I am consuming from a 3rd party library.
the problem I am facing is that the constructor of this class has an internal access modifier, and being from a 3rd party solution I cant really use the InternalsVisibleTo attribute, so I was wondering if there is any Autofixture behaviour that can be used or if there are any alternative techniques that can be applied in these kind of scenarios.
public class RecordedEvent
{
/// <summary>The Event Stream that this event belongs to</summary>
public readonly string EventStreamId;
/// <summary>The Unique Identifier representing this event</summary>
public readonly Guid EventId;
/// <summary>The number of this event in the stream</summary>
.....
internal RecordedEvent(....)
{
.....
}
}