public HandlersTests() { _provider = DependencyInjection.GetServiceProvider(); _commandPublisher = _provider.GetRequiredService <ICommandSender>(); _internalEventPublisher = _provider.GetRequiredService <IInternalEventPublisher>(); }
public AggregateRepository(IEventStore <TA, TId> eventStore, IInternalEventPublisher eventPublisher) { _eventStore = eventStore; _eventPublisher = eventPublisher; }