public void MyTestMethod() { //Arrange var photos = new List <Photo>(); //Act var path = new PathToPhoto { AccommodationPhotos = photos }; //Assert Assert.AreSame(photos, path.AccommodationPhotos); }
public override int GetHashCode() { unchecked { var hashCode = (_phone != null ? _phone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DriverIdNum != null ? DriverIdNum.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (_name != null ? _name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)_status; hashCode = (hashCode * 397) ^ (int)GenderType; hashCode = (hashCode * 397) ^ (AbonementCurent != null ? AbonementCurent.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (string.IsNullOrEmpty(IdString) ? 0 : IdString.GetHashCode()); hashCode = (hashCode * 397) ^ BirthDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Passport != null ? Passport.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PathToPhoto != null ? PathToPhoto.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SpecialNotes != null ? SpecialNotes.GetHashCode() : 0); return(hashCode); } }