Example #1
0
        public void EqualsIsFalseIfAddressesAreNotTheSame()
        {
            var other = new ReportBasicInfoModel(Lodging)
            {
                Address = "anotheraddress"
            };

            Assert.IsFalse(other.Equals(ReportBasicInfoModel));
        }
Example #2
0
        public void TestInitialize()
        {
            var touristSpot = new TouristSpot {
                Id = 1, Name = "name", Description = "description"
            };

            Lodging = new Lodging
            {
                Id                  = 1,
                Name                = "Name",
                Description         = "Description",
                Rating              = 3,
                IsFull              = true,
                PricePerNight       = 100,
                Address             = "Valid Address 123",
                Phone               = "+598 98 303 040",
                ConfirmationMessage = "Your reservation has been confirmed!",
                TouristSpot         = touristSpot
            };
            ReportBasicInfoModel = new ReportBasicInfoModel(Lodging);
        }
Example #3
0
        public void EqualsIsTrueIfAddressesAreTheSame()
        {
            var other = new ReportBasicInfoModel(Lodging);

            Assert.IsTrue(other.Equals(ReportBasicInfoModel));
        }