public Type GetTypeForEventName(string name)
{
Type eventType;
var strippedName = name.Replace(" ", string.Empty);
if (!_typeMap.TryGetValue(strippedName, out eventType))
{
throw new ArgumentException($"Unable to find suitable type for event name {name}. Expected to find a type named {strippedName}Event");
}
return eventType;
}
}