Exemplo n.º 1
0
        public DebtsRegister(
            TablesDbContext dbc,
            TablesDbContextForReader rdbc,
            IPersonDebtsRegister personDebtsRegister,
            IPersonDebtsRegisterReader personDebtsRegisterReader,
            IPairDebtsRegister pairDebtsRegister,
            IPairDebtsRegisterReader pairDebtsRegisterReader,
            IDebtDealsRegister debtDealsRegister,
            IDebtDealsRegisterReader debtDealsRegisterReader,
            IAchieversRegister achieversRegister,
            IAchieversRegisterReader achieversRegisterReader
            )
        {
            this.dbc  = dbc;
            this.rdbc = rdbc;

            this.Person = personDebtsRegister;
            this.personDebtsRegisterReader = personDebtsRegisterReader;

            this.Pairs = pairDebtsRegister;
            this.pairDebtsRegisterReader = pairDebtsRegisterReader;

            this.Deals = debtDealsRegister;
            this.debtDealsRegisterReader = debtDealsRegisterReader;

            this.Achievers = achieversRegister;
            this.achieversRegisterReader = achieversRegisterReader;
        }
Exemplo n.º 2
0
 public PeopleRegister(
     TablesDbContext dbc,
     TablesDbContextForReader rdbc
     )
 {
     this.dbc  = dbc;
     this.rdbc = rdbc;
 }
 public DebtDealsRegister(
     TablesDbContext dbc,
     TablesDbContextForReader rdbc
     )
 {
     this.dbc  = dbc;
     this.rdbc = rdbc;
 }
Exemplo n.º 4
0
        public PairDebtsRegister(
            TablesDbContext dbc,
            TablesDbContextForReader rdbc,
            IDebtDealsRegister debtDealsRegister
            )
        {
            this.dbc  = dbc;
            this.rdbc = rdbc;

            debtDealsRegister.DebtDealReceived += this.OnDebtDealReceived;
        }
Exemplo n.º 5
0
        public AchieversRegister(
            TablesDbContext dbc,
            TablesDbContextForReader rdbc,
            IMongoCollection <AchieversDoc> achieversCollection,
            IDebtDealsRegister debtDealsRegister,
            IPersonDebtsRegister personDebtsRegister
            )
        {
            this.dbc                 = dbc;
            this.rdbc                = rdbc;
            this.mongoCollection     = achieversCollection;
            this.personDebtsRegister = personDebtsRegister;

            debtDealsRegister.DebtDealReceived += this.OnDebtDealReceived;
            debtDealsRegister.DebtDealAdded    += this.OnDebtDealAdded;

            this.ByID = new AchieversByID(() => this.currentAchieversDoc);

            this.InitializeDocument();
        }