Exemplo n.º 1
0
        public void DoesNotEqualWithDifferentId()
        {
            var anotherLodgingReview = LodgingReview;

            anotherLodgingReview.Id = 2;
            var anotherLodgingReviewModel = new LodgingReviewBasicInfoModel(anotherLodgingReview);

            Assert.IsFalse(LodgingReviewBasicInfoModel.Equals(anotherLodgingReviewModel));
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        public void EqualsAnotherWithSameId()
        {
            var anotherLodgingReviewModel = new LodgingReviewBasicInfoModel(LodgingReview);

            Assert.IsTrue(LodgingReviewBasicInfoModel.Equals(anotherLodgingReviewModel));
        }