public void EqualsIsFalseIfAddressesAreNotTheSame() { var other = new LodgingModifiedModel(Lodging); other.Address = "anotheraddress"; Assert.IsFalse(other.Equals(LodgingModifiedModel)); }
public void TestInitialize() { var region = new Region() { Id = 1, Name = "RegionName" }; var touristSpot = new TouristSpot() { Id = 1, Name = "name", Description = "description", Image = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }, Region = region, TouristSpotCategories = new List <TouristSpotCategory>() }; var lodgingImage = new LodgingImage { Id = 1, LodgingId = 1, ImageData = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 } }; Lodging = new Lodging() { Id = 1, Name = "Name", Description = "Description", Rating = 3, IsFull = true, Images = new List <LodgingImage>() { lodgingImage }, PricePerNight = 100, Address = "Valid Address 123", Phone = "+598 98 303 040", ConfirmationMessage = "Your reservation has been confirmed!", TouristSpot = touristSpot }; LodgingModifiedModel = new LodgingModifiedModel(Lodging); }
public void EqualsIsTrueIfAddressesAreTheSame() { var other = new LodgingModifiedModel(Lodging); Assert.IsTrue(other.Equals(LodgingModifiedModel)); }