public void DoesNotEqualWithDifferentId() { var anotherTouristSpot = TouristSpot; anotherTouristSpot.Id = 2; var anotherTouristSpotModel = new TouristSpotNoAssociationsModel(anotherTouristSpot); Assert.IsFalse(TouristSpotNoAssociationsModel.Equals(anotherTouristSpotModel)); }
public void TestInitialize() { TouristSpot = new TouristSpot() { Id = 1, Name = "name", Description = "description", Image = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 } }; TouristSpotNoAssociationsModel = new TouristSpotNoAssociationsModel(TouristSpot); }
public void EqualsAnotherWithSameIdAndName() { var anotherTouristSpotModel = new TouristSpotNoAssociationsModel(TouristSpot); Assert.IsTrue(TouristSpotNoAssociationsModel.Equals(anotherTouristSpotModel)); }