protected BaseCustomerEventHandler(ICommandStackDatabase database) { if (database == null) { throw new ArgumentNullException($"Database was not initialized"); } this.Database = database; }
public AccountLockedEventHandler(ICommandStackDatabase database, ICommandStackRepository <AccountDomainModel> repository) : base(database) { if (repository == null) { throw new InvalidOperationException("Repository is not initialized."); } this._repository = repository; }
public ContactChangedEventHandler(ICommandStackRepository <Domain.CustomerDomainModel> repository, ICommandStackDatabase database) : base(database) { if (repository == null) { throw new InvalidOperationException("Repository is not initialized."); } this._repository = repository; }
public BalanceChangedEventHandler(ICommandStackRepository <Domain.AccountDomainModel> repository, ICommandStackDatabase database) : base(database) { if (repository == null) { throw new ArgumentNullException($"Repository was not initialized"); } this._repository = repository; }
public NEventStoreCommandStackRepository(IStoreEvents eventStore, ICommandStackDatabase database) { this._eventStore = eventStore; this._database = database; }
public CustomerCreatedEventHandler(ICommandStackDatabase database) : base(database) { }
public AccountAddedEventHandler(ICommandStackDatabase database) : base(database) { }