コード例 #1
0
 public bool Equals(SeatsNotReserved other)
 {
     return(Customer == other.Customer &&
            Seats.Count == other.Seats.Count &&
            Seats.All((seat) => other.Seats.Contains(seat)) &&
            Reason == other.Reason);
 }
コード例 #2
0
ファイル: SeatsReserved.cs プロジェクト: MelvLee/ddd-workshop
 public bool Equals(SeatsReserved other)
 {
     return(Customer == other.Customer &&
            Screening == other.Screening &&
            Seats.Count == other.Seats.Count &&
            Seats.All((seat) => other.Seats.Contains(seat)));
 }