Esempio n. 1
0
 /// <summary>
 /// Stores the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 public void Store(StorableTaggedFile value)
 {
     //StorableTaggedFile file;
     //if ((file = value) == null)
     //    file = StorableTaggedFile.Copy(value);
     fileStorer.Save(value);
 }
Esempio n. 2
0
 /// <summary>
 /// Processes creating Xml document.
 /// </summary>
 public void Process()
 {
     IEnumerable<string> stringValuesFromFile = dataRetriever.Load();
     IEnumerable<URLAddress> urls = fromStringToUrlsTransformer.Transform(stringValuesFromFile);
     XDocument xDocument = fromUrlToXDocumentTransformer.Transform(urls);
     dataPersister.Save(xDocument);
 }
Esempio n. 3
0
        public void Process(UploadedData data)
        {
            var models = new List <DataModel>();
            var lines  = _reader.ReadLines(data.FilePath);

            foreach (var line in lines)
            {
                models.Add(_mapper.MapLine(line));
            }

            _dataPersister.Save(models);
        }
Esempio n. 4
0
 private void Store(TInfo info)
 {
     storageAdapter.Save(info);
 }