private IEnumerable <string> BuildExtensionRows(RowBuilder rowBuilder) { var multimedia = fixture.GetMultimediaAsync().Result; foreach (var media in multimedia) { yield return(rowBuilder.AddField(media.Id) .AddField(media.Type) .AddField(media.Format) .AddField(media.Identifier) .Build()); } }
private IEnumerable <string> BuildCoreRows(RowBuilder rowBuilder) { var occurrences = fixture.GetOccurrencesAsync().Result; foreach (var occurrence in occurrences) { yield return(rowBuilder.AddField(occurrence.OccurrenceID) .AddField(occurrence.BasisOfRecord) .AddField(occurrence.ScientificName) .AddField(occurrence.EventDate.ToString("yyyy-MM-dd")) .AddField(occurrence.DecimalLatitude) .AddField(occurrence.DecimalLongitude) .Build()); } }