Exemple #1
0
        public void CRE_Agency_Test_With_Matching_Address()
        {
            //Arrange
            var databaseProperty = new Property()
            {
                Name = "The  Summit Apartments"
            };

            var agencyProperty = new Property()
            {
                Name = "Apartments Summit The"
            };

            //Action
            var result = new CREAgency().IsMatch(agencyProperty, databaseProperty);

            //Assert
            Assert.IsTrue(result);
        }
Exemple #2
0
        public void OTBRE_Agency_Test_With_Matching_Address()
        {
            //Arrange
            var databaseProperty = new Property()
            {
                Name    = "Super ­High APARTMENTS, Sydney",
                Address = "32 Sir John­ Young Crescent, Sydney, NSW."
            };

            var agencyProperty = new Property()
            {
                Name    = "*Super *­High! APARTMENTS(Sydney)",
                Address = "32 Sir John­-Young Crescent, Sydney, NSW."
            };

            //Action
            var result = new CREAgency().IsMatch(agencyProperty, databaseProperty);

            //Assert
            Assert.IsTrue(result);
        }