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; }
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; }
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)); }