Example #1
0
        public void RealEstateId()
        {
            //Arrange
            const int id = 1976;

            //Act
            var localization = new LocalizedDescription
            {
                RealEstateId = id
            };

            //Assert
            Assert.AreEqual(id, localization.RealEstateId);
        }
Example #2
0
        public bool Equals(PartnerOfferHistoryResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PartnerOfferKey == input.PartnerOfferKey ||
                     (PartnerOfferKey != null && PartnerOfferKey.Equals(input.PartnerOfferKey))
                     ) &&
                 (
                     MembershipId == input.MembershipId ||
                     (MembershipId.Equals(input.MembershipId))
                 ) &&
                 (
                     MembershipType == input.MembershipType ||
                     (MembershipType.Equals(input.MembershipType))
                 ) &&
                 (
                     LocalizedName == input.LocalizedName ||
                     (LocalizedName != null && LocalizedName.Equals(input.LocalizedName))
                 ) &&
                 (
                     LocalizedDescription == input.LocalizedDescription ||
                     (LocalizedDescription != null && LocalizedDescription.Equals(input.LocalizedDescription))
                 ) &&
                 (
                     IsConsumable == input.IsConsumable ||
                     (IsConsumable != null && IsConsumable.Equals(input.IsConsumable))
                 ) &&
                 (
                     QuantityApplied == input.QuantityApplied ||
                     (QuantityApplied.Equals(input.QuantityApplied))
                 ) &&
                 (
                     ApplyDate == input.ApplyDate ||
                     (ApplyDate != null && ApplyDate.Equals(input.ApplyDate))
                 ));
        }
Example #3
0
        public bool Equals(PartnerOfferSkuHistoryResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     SkuIdentifier == input.SkuIdentifier ||
                     (SkuIdentifier != null && SkuIdentifier.Equals(input.SkuIdentifier))
                     ) &&
                 (
                     LocalizedName == input.LocalizedName ||
                     (LocalizedName != null && LocalizedName.Equals(input.LocalizedName))
                 ) &&
                 (
                     LocalizedDescription == input.LocalizedDescription ||
                     (LocalizedDescription != null && LocalizedDescription.Equals(input.LocalizedDescription))
                 ) &&
                 (
                     ClaimDate == input.ClaimDate ||
                     (ClaimDate != null && ClaimDate.Equals(input.ClaimDate))
                 ) &&
                 (
                     AllOffersApplied == input.AllOffersApplied ||
                     (AllOffersApplied != null && AllOffersApplied.Equals(input.AllOffersApplied))
                 ) &&
                 (
                     TransactionId == input.TransactionId ||
                     (TransactionId != null && TransactionId.Equals(input.TransactionId))
                 ) &&
                 (
                     SkuOffers == input.SkuOffers ||
                     (SkuOffers != null && SkuOffers.SequenceEqual(input.SkuOffers))
                 ));
        }