public void DeleteParticipant(PotUser potUser) { if (Id != potUser.PotId) { return; } if (_participants.Contains(potUser)) { _participants.Remove(potUser); } }
public void AddParticipant(PotUser potUser) { if (Id != potUser.PotId) { return; } if (!_participants.Contains(potUser)) { _participants.Add(potUser); } }
public bool Equals(PotUser otherPotUser) { if (otherPotUser == null) { return(false); } if (ReferenceEquals(this, otherPotUser)) { return(true); } return(PotId == otherPotUser.PotId && UserId == otherPotUser.UserId); }
internal PotUser(PotUser potUser) : this(potUser.UserId, potUser.PotId, potUser.HasPayed, potUser.Amount, potUser.TargetAmount, potUser.HasCancelled, potUser.CancellationReason, potUser.HasValidated, potUser.ModificationDate) { }