예제 #1
0
        public void DoesNotEqualWithDifferentId()
        {
            var anotherTouristSpot = TouristSpot;

            anotherTouristSpot.Id = 2;
            var anotherTouristSpotModel = new TouristSpotNoAssociationsModel(anotherTouristSpot);

            Assert.IsFalse(TouristSpotNoAssociationsModel.Equals(anotherTouristSpotModel));
        }
예제 #2
0
 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);
 }
예제 #3
0
        public void EqualsAnotherWithSameIdAndName()
        {
            var anotherTouristSpotModel = new TouristSpotNoAssociationsModel(TouristSpot);

            Assert.IsTrue(TouristSpotNoAssociationsModel.Equals(anotherTouristSpotModel));
        }