public Solution(Nurse nurse, Day day, Shift shift, Alocation alocation) { this.nurse = nurse; this.day = day; this.shift = shift; this.alocation = alocation; }
public override bool Equals(object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (!GetType().Equals(obj.GetType())) { return(false); } Alocation other = (Alocation)obj; if (nurse == null) { if (other.nurse != null) { return(false); } } else if (!nurse.Equals(other.nurse)) { return(false); } if (typeAlocation != other.typeAlocation) { return(false); } return(true); }