0

I have different audittrail factories for different events:

DomainEventA: DomainEvent
DomainEventB: DomainEvent

...

How can I iterate over each event deriving from DomainEvent and check if I have a AuditTrailFactory of T?

 foreach (var type in typeof(DomainEvent).Assembly.GetTypes().Where(x => !x.IsAbstract && x.IsSubclassOf(typeof(DomainEvent))))
            {
                Assert.NotNull(AuditTrailFactoryProvider.GetAuditTrailFactory<T>());
            }
yBother
  • 648
  • 6
  • 25

0 Answers0