コード例 #1
0
 public AddJournalEntry(Guid id, string userId, JournalEntry journalEntry)
 {
     Id = id;
     UserId = userId;
     JournalEntry = journalEntry;
     ExpectedVersion = journalEntry.Version;
 }
コード例 #2
0
 public TransactionCreated(Guid id, string userId, JournalEntry journalEntry)
 {
     Id = id;
     AggregateId = id.ToString();
     UserId = userId;
     JournalEntry = journalEntry;
 }
コード例 #3
0
 public AccountTransaction(Guid id, string userId, JournalEntry journalEntry)
 {
     Id = id;
     UserId = userId;
     JournalEntry = journalEntry;
     ApplyChange(new TransactionCreated(id, userId, journalEntry));
 }
コード例 #4
0
 public CreateJournal(Guid id, string userId, JournalEntry journalEntry)
 {
     Id = id;
     UserId = userId;
     JournalEntry = journalEntry;
     ExpectedVersion = 0;
 }
コード例 #5
0
 public TransactionItemListDto(Guid id, string userId, JournalEntry journalEntry)
 {
     AggregateId = id;
     UserId = userId;
     JournalEntry = journalEntry;
 }
コード例 #6
0
 public void AddTransaction(Guid id, string userId, JournalEntry journalEntry)
 {
     if (journalEntry.Version == 0) throw new ArgumentException("IncorrectTransactionVersion");
     ApplyChange(new TransactionCreated(id, userId, journalEntry));
 }