示例#1
0
 protected DueDto(
     Guid id,
     Guid userId,
     int amount,
     DueStatus dueStatus,
     Half half)
 {
     Id        = id;
     UserId    = userId;
     Amount    = amount;
     DueStatus = dueStatus;
     Half      = half;
 }
示例#2
0
 public Due(
     Guid id,
     Guid userId,
     Half half,
     int amount,
     DueStatus dueStatus)
     : base(id)
 {
     UserId    = userId;
     Half      = half;
     Amount    = amount;
     DueStatus = dueStatus;
 }
示例#3
0
 public static Due Create(Guid userId, Half half, int amount)
 => new(
示例#4
0
        public void AddDue(Half half, int amount)
        {
            var due = DueFactory.Create(Id, half, amount);

            Dues.Add(due);
        }