Example #1
0
        public void should_yield_core_update_mp_dto_into_hubspot_properties_collection()
        {
            var result = MappingExpressionExtensions.ReflectToContactProperties(_updatedContact);

            result.First(item => item.Name == "community").Value.Should().Be("Oakley");
            result.First(item => item.Name == "email").Value.Should().Be("*****@*****.**");
            result.First(item => item.Name == "firstname").Value.Should().Be("Jason");
            result.First(item => item.Name == "lastname").Value.Should().Be("Brahms");
            result.First(item => item.Name == "gender").Value.Should().Be("a fella");
            result.First(item => item.Name == "marital_status").Value.Should().Be("Casado");
            result.First(item => item.Name == "ministryplatformcontactid").Value.Should().Be("9876543210");
            result.First(item => item.Name == "mobilephone").Value.Should().Be("555-555-7777");
            result.First(item => item.Name == "number_of_infants").Value.Should().Be("1");
            result.First(item => item.Name == "number_of_1_year_olds").Value.Should().Be("2");
            result.First(item => item.Name == "number_of_2_year_olds").Value.Should().Be("3");
            result.First(item => item.Name == "number_of_3_year_olds").Value.Should().Be("4");
            result.First(item => item.Name == "number_of_4_year_olds").Value.Should().Be("5");
            result.First(item => item.Name == "number_of_5_year_olds").Value.Should().Be("6");
            result.First(item => item.Name == "number_of_kindergartners").Value.Should().Be("7");
            result.First(item => item.Name == "number_of_1st_graders").Value.Should().Be("8");
            result.First(item => item.Name == "number_of_2nd_graders").Value.Should().Be("9");
            result.First(item => item.Name == "number_of_3rd_graders").Value.Should().Be("10");
            result.First(item => item.Name == "number_of_4th_graders").Value.Should().Be("11");
            result.First(item => item.Name == "number_of_5th_graders").Value.Should().Be("12");
            result.First(item => item.Name == "number_of_6th_graders").Value.Should().Be("13");
            result.First(item => item.Name == "number_of_7th_graders").Value.Should().Be("14");
            result.First(item => item.Name == "number_of_8th_graders").Value.Should().Be("15");
            result.First(item => item.Name == "number_of_9th_graders").Value.Should().Be("16");
            result.First(item => item.Name == "number_of_10th_graders").Value.Should().Be("17");
            result.First(item => item.Name == "number_of_11th_graders").Value.Should().Be("18");
            result.First(item => item.Name == "number_of_12th_graders").Value.Should().Be("19");
            result.First(item => item.Name == "number_of_graduated_seniors").Value.Should().Be("20");
            result.First(item => item.Name == "source").Value.Should().Be("MP_Sync_General_Update");
        }
Example #2
0
        public void should_yield_age_grade_mp_dto_into_hubspot_properties_collection()
        {
            var result = MappingExpressionExtensions.ReflectToContactProperties(_ageGradeCounts);

            result.First(item => item.Name == "community").Value.Should().Be("Mason");
            result.First(item => item.Name == "email").Value.Should().Be("*****@*****.**");
            result.First(item => item.Name == "firstname").Value.Should().Be("Jake");
            result.First(item => item.Name == "lastname").Value.Should().Be("Patron");
            result.First(item => item.Name == "gender").Value.Should().Be("a lad");
            result.First(item => item.Name == "marital_status").Value.Should().Be("Single");
            result.First(item => item.Name == "ministryplatformcontactid").Value.Should().Be("7070707");
            result.First(item => item.Name == "mobilephone").Value.Should().Be("111-555-5555");
            result.First(item => item.Name == "number_of_infants").Value.Should().Be("1");
            result.First(item => item.Name == "number_of_1_year_olds").Value.Should().Be("2");
            result.First(item => item.Name == "number_of_2_year_olds").Value.Should().Be("3");
            result.First(item => item.Name == "number_of_3_year_olds").Value.Should().Be("4");
            result.First(item => item.Name == "number_of_4_year_olds").Value.Should().Be("5");
            result.First(item => item.Name == "number_of_5_year_olds").Value.Should().Be("6");
            result.First(item => item.Name == "number_of_kindergartners").Value.Should().Be("7");
            result.First(item => item.Name == "number_of_1st_graders").Value.Should().Be("8");
            result.First(item => item.Name == "number_of_2nd_graders").Value.Should().Be("9");
            result.First(item => item.Name == "number_of_3rd_graders").Value.Should().Be("10");
            result.First(item => item.Name == "number_of_4th_graders").Value.Should().Be("11");
            result.First(item => item.Name == "number_of_5th_graders").Value.Should().Be("12");
            result.First(item => item.Name == "number_of_6th_graders").Value.Should().Be("13");
            result.First(item => item.Name == "number_of_7th_graders").Value.Should().Be("14");
            result.First(item => item.Name == "number_of_8th_graders").Value.Should().Be("15");
            result.First(item => item.Name == "number_of_9th_graders").Value.Should().Be("16");
            result.First(item => item.Name == "number_of_10th_graders").Value.Should().Be("17");
            result.First(item => item.Name == "number_of_11th_graders").Value.Should().Be("18");
            result.First(item => item.Name == "number_of_12th_graders").Value.Should().Be("19");
            result.First(item => item.Name == "number_of_graduated_seniors").Value.Should().Be("20");
            result.First(item => item.Name == "source").Value.Should().Be("MP_Sync_Kids_Club_&_Student_Ministry_Update");
        }
Example #3
0
        public void should_yield_new_registration_mp_dto_into_hubspot_properties_collection()
        {
            var result = MappingExpressionExtensions.ReflectToContactProperties(_newContact);

            result.First(item => item.Name == "community").Value.Should().Be("Florence");
            result.First(item => item.Name == "email").Value.Should().Be("*****@*****.**");
            result.First(item => item.Name == "firstname").Value.Should().Be("Luke");
            result.First(item => item.Name == "lastname").Value.Should().Be("Mods");
            result.First(item => item.Name == "gender").Value.Should().Be("a dood");
            result.First(item => item.Name == "marital_status").Value.Should().Be("Murried");
            result.First(item => item.Name == "ministryplatformcontactid").Value.Should().Be("123456789");
            result.First(item => item.Name == "mobilephone").Value.Should().Be("555-555-5555");
            result.First(item => item.Name == "number_of_infants").Value.Should().Be("1");
            result.First(item => item.Name == "number_of_1_year_olds").Value.Should().Be("2");
            result.First(item => item.Name == "number_of_2_year_olds").Value.Should().Be("3");
            result.First(item => item.Name == "number_of_3_year_olds").Value.Should().Be("4");
            result.First(item => item.Name == "number_of_4_year_olds").Value.Should().Be("5");
            result.First(item => item.Name == "number_of_5_year_olds").Value.Should().Be("6");
            result.First(item => item.Name == "number_of_kindergartners").Value.Should().Be("7");
            result.First(item => item.Name == "number_of_1st_graders").Value.Should().Be("8");
            result.First(item => item.Name == "number_of_2nd_graders").Value.Should().Be("9");
            result.First(item => item.Name == "number_of_3rd_graders").Value.Should().Be("10");
            result.First(item => item.Name == "number_of_4th_graders").Value.Should().Be("11");
            result.First(item => item.Name == "number_of_5th_graders").Value.Should().Be("12");
            result.First(item => item.Name == "number_of_6th_graders").Value.Should().Be("13");
            result.First(item => item.Name == "number_of_7th_graders").Value.Should().Be("14");
            result.First(item => item.Name == "number_of_8th_graders").Value.Should().Be("15");
            result.First(item => item.Name == "number_of_9th_graders").Value.Should().Be("16");
            result.First(item => item.Name == "number_of_10th_graders").Value.Should().Be("17");
            result.First(item => item.Name == "number_of_11th_graders").Value.Should().Be("18");
            result.First(item => item.Name == "number_of_12th_graders").Value.Should().Be("19");
            result.First(item => item.Name == "number_of_graduated_seniors").Value.Should().Be("20");
            result.First(item => item.Name == "source").Value.Should().Be("MP_Registration");
        }