Ejemplo n.º 1
0
 public State(Account account, TaxLedger taxLedger, FeeLedger feeLedger, DomainEventTypes eventType,
              string @event,
              string eventEventStreamId)
 {
     TaxLedger     = taxLedger;
     FeeLedger     = feeLedger;
     Event         = @event;
     Account       = account;
     EventType     = eventType;
     EventStreamId = eventEventStreamId;
 }
Ejemplo n.º 2
0
 public ReadModelComposerBackgroundService(IAccountsRepository accountsRepository, IMongoDatabase mongoDatabase
                                           , IHostingEnvironment env, ITaxLedgerRepository taxLedgerRepository, IFeeLedgerRepository feeLedgerRepository,
                                           IEventStoreConnection eventStoreConnection, UserCredentials userCredentials)
 {
     _accountsRepository = accountsRepository;
     _database           = mongoDatabase;
     _env              = env;
     _taxLedger        = taxLedgerRepository.GetTaxLedger();
     _feeLedger        = feeLedgerRepository.GetFeeLedger();
     _conn             = eventStoreConnection;
     _adminCredentials = userCredentials;
 }
Ejemplo n.º 3
0
 public FeeLedgerRepository()
 {
     _feeLedger = new FeeLedger();
 }