/// <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); }
/// <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); }
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); }
private void Store(TInfo info) { storageAdapter.Save(info); }