Exemplo n.º 1
0
        public void CreateImportTest()
        {
            Dictionary <string, string> fields = new Dictionary <string, string>
            {
                { "C_EmailAddress", "{{Contact.Field(C_EmailAddress)}}" },
                { "C_FirstName", "{{Contact.Field(C_FirstName)}}" },
            };

            // the id of the list to which the contacts will be added
            // see ContactImportSample.GetContactList() method for retrieving lists with identifiers
            const int listId = 123;

            var result = _contactImportHelper.CreateImportStructure(fields, listId);

            Assert.IsNotNullOrEmpty(result);
        }