protected DueDto( Guid id, Guid userId, int amount, DueStatus dueStatus, Half half) { Id = id; UserId = userId; Amount = amount; DueStatus = dueStatus; Half = half; }
public Due( Guid id, Guid userId, Half half, int amount, DueStatus dueStatus) : base(id) { UserId = userId; Half = half; Amount = amount; DueStatus = dueStatus; }
public static Due Create(Guid userId, Half half, int amount) => new(
public void AddDue(Half half, int amount) { var due = DueFactory.Create(Id, half, amount); Dues.Add(due); }