コード例 #1
0
 public AccountDto(Guid id, string title, string description, string notes, string code,
                   AccountType type, CounterpartyType counterpartyType, Security security, string parentAccountId)
 {
     AggregateId      = id;
     Title            = title;
     Description      = description;
     Notes            = notes;
     Code             = code;
     Type             = type;
     CounterpartyType = counterpartyType;
     Security         = security;
     ParentAccountId  = parentAccountId;
 }
コード例 #2
0
 public CreateAccount(Guid id, string userId, string title, string description, string notes, string code,
                      AccountType type, CounterpartyType counterpartyType, Security security, string parentAccountId)
 {
     Id               = id;
     UserId           = userId;
     Title            = title;
     Description      = description;
     Notes            = notes;
     Code             = code;
     Type             = type;
     CounterpartyType = counterpartyType;
     Security         = security;
     ParentAccountId  = parentAccountId;
 }
コード例 #3
0
ファイル: Account.cs プロジェクト: gen8tech/ledger
        public Account(Guid id, string title, string description, string notes, string code, AccountType type,
                       CounterpartyType counterpartyType, Security security, string parentAccountId)
        {
            Id                = id;
            _title            = title;
            _description      = description;
            _notes            = notes;
            _code             = code;
            _type             = type;
            _counterpartyType = counterpartyType;
            _security         = security;
            _parentAccountId  = parentAccountId;

            ApplyChange(new AccountCreated(id, title, description, notes, code, type, counterpartyType, security, parentAccountId));
        }