private static IEventStore InitializeEventStore() { var typeResolver = new AttributeEventTypeResolver(); typeResolver.AddEvent(typeof(NameChangedEvent)); typeResolver.AddEvent(typeof(PersonCreatedEvent)); var eventStore = new MsSqlServerEventStore(ConfigurationManager.ConnectionStrings["EventStore"].ConnectionString, typeResolver, null); return(eventStore); }
public void SetUp() { var typeResolver = new AttributeEventTypeResolver(); typeResolver.AddEvent(typeof(AnEvent)); _typeResolver = typeResolver; }
public JsonEventFormatterTests() { var typeResolver = new AttributeEventTypeResolver(); typeResolver.AddEvent(typeof(AnEvent)); _typeResolver = typeResolver; }