/// <summary> /// Initializes a new instance of the <see cref="EventStreamCreateRequestHandler" /> class. /// </summary> /// <param name="mapper">The event mapper instance.</param> public EventStreamCreateRequestHandler(IRequestToEventMapper <EventStreamCreateRequest, EventStreamCreatedEvent> mapper) { if (mapper == null) { throw new ArgumentNullException(nameof(mapper)); } this._mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="UsernameChangeRequestHandler" /> class. /// </summary> /// <param name="mapper">The event mapper instance.</param> public UsernameChangeRequestHandler(IRequestToEventMapper <UsernameChangeRequest, UsernameChangedEvent> mapper) { if (mapper == null) { throw new ArgumentNullException(nameof(mapper)); } this._mapper = mapper; }