Ejemplo n.º 1
0
        public void SaveEntry(EntryRecord entry)
        {
            if (entry == null) throw new ArgumentNullException("entry");

             var repository = new EntryRecordXmlRepository();
             repository.SaveEntryRecord(entry);
        }
Ejemplo n.º 2
0
 private void ValidateEntry(EntryRecord entry)
 {
     var repository = new EntryRecordXmlRepository();
      var xmlEntry = repository.ReadEntryRecord();
      if (xmlEntry != null)
      {
     foreach (var directory in entry.RootDirectories)
     {
        var storedDirectory = xmlEntry.RootDirectories.FirstOrDefault(dr => dr.FullName == directory.FullName);
        if (storedDirectory != null)
           ValidateDirectory(directory, storedDirectory);
     }
      }
 }