/// <summary>
        /// Default the input data schema. since we do not have a header available.
        /// </summary>
        protected override void ProcessRequest()
        {
            var dm = _headerParser.Parse(_personData);

            //default header fields as we do not have access to the header data. in rest.api
            dm.Fields = new Dictionary <string, int>
            {
                { "firstname", 0 },
                { "lastname", 1 },
                { "gender", 2 },
                { "favoritecolor", 3 },
                { "dateofbirth", 4 }
            };

            var person = _personParser.Parse(_personData, dm);

            _service.Add(person);
        }
Exemple #2
0
 public void RunParseDataGender_Tests()
 {
     dataMeta1.Delimiter = ',';
     var person = parser.Parse(person1raw_csv_invaliddate, dataMeta1);
 }