BullOak.Repositories.EventStore.Events.ToItemWithType() throws on:
var serializedEvent = System.Text.Encoding.UTF8.GetString(resolvedEvent.Event.Data);
Type type = ReadTypeFromMetadata(resolvedEvent);
object @event;
if (type.IsInterface) // <-- throws NRE
If the type information is not found, type is null. A specific exception has to be thrown: EventTypeCouldNotBeResolvedException
BullOak.Repositories.EventStore.Events.ToItemWithType() throws on:
If the type information is not found, type is null. A specific exception has to be thrown:
EventTypeCouldNotBeResolvedException