public void DoesNotEqualWithDifferentId() { var anotherLodgingReview = LodgingReview; anotherLodgingReview.Id = 2; var anotherLodgingReviewModel = new LodgingReviewBasicInfoModel(anotherLodgingReview); Assert.IsFalse(LodgingReviewBasicInfoModel.Equals(anotherLodgingReviewModel)); }
public void TestInitialize() { LodgingReview = new LodgingReview { Id = 1, BookingId = 1, Booking = new Booking { Id = 1, Tourist = new Tourist { Name = "aName", LastName = "aLastname", }, }, Rating = 3, Commentary = "a comment" }; LodgingReviewBasicInfoModel = new LodgingReviewBasicInfoModel(LodgingReview); }
public void EqualsAnotherWithSameId() { var anotherLodgingReviewModel = new LodgingReviewBasicInfoModel(LodgingReview); Assert.IsTrue(LodgingReviewBasicInfoModel.Equals(anotherLodgingReviewModel)); }