public void ModelWithSameIdDoesNotEqualAnotherModel() { var otherModel = new BookingBasicInfoModel(Booking); otherModel.Id = 3; Assert.AreNotEqual(BookingBasicInfoModel, otherModel); }
public void TestInitialize() { var lodging = new Lodging() { Id = 1, Name = "Name", Description = "Description", Rating = 3, IsFull = true, Images = new List <LodgingImage>() { new LodgingImage() }, PricePerNight = 100, Address = "Valid Address 123", Phone = "+598 98 303 040", ConfirmationMessage = "Your reservation has been confirmed!", TouristSpot = null }; var tourist = new Tourist() { Name = "aName", LastName = "aLastName", Email = "*****@*****.**" }; Booking = new Booking() { CheckIn = DateTime.Now, CheckOut = DateTime.Now.AddDays(5), Lodging = lodging, Guests = 3, Tourist = tourist }; BookingBasicInfoModel = new BookingBasicInfoModel(Booking); }
public void ModelWithSameIdEqualsANotherModel() { var otherModel = new BookingBasicInfoModel(Booking); Assert.AreEqual(BookingBasicInfoModel, otherModel); }