Esempio n. 1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Constructor based on a ScrSfFileList
 /// </summary>
 /// <param name="fileList">The list of files</param>
 /// ------------------------------------------------------------------------------------
 public ImportFileSource(ScrSfFileList fileList)
 {
     Debug.Assert(fileList != null);
     m_cache       = null;
     m_sourceTable = null;
     m_fileList    = fileList;
 }
Esempio n. 2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Constructor based on a hashtable which maps HVOs of ScrImportSource objects to
 /// ScrSfFileList objects
 /// </summary>
 /// <param name="sourceTable">The hashtable</param>
 /// <param name="cache">The LCM cache needed for interpreting the HVOs</param>
 /// ------------------------------------------------------------------------------------
 public ImportFileSource(Hashtable sourceTable, LcmCache cache)
 {
     Debug.Assert(sourceTable != null);
     m_cache       = cache;
     m_sourceTable = sourceTable;
     m_fileList    = null;
 }
Esempio n. 3
0
 public void Setup()
 {
     m_resolver                      = MockRepository.GenerateStrictMock <IOverlappingFileResolver>();
     m_expectedRemovedFiles          = new List <IScrImportFileInfo>();
     m_callCountForVerifyFileRemoved = 0;
     m_fileList                      = new ScrSfFileList(m_resolver);
     m_fileList.FileRemoved         += new ScrImportFileEventHandler(VerifyFileRemoved);
 }
Esempio n. 4
0
 public ImportFileEnumerator(LcmCache cache, ScrSfFileList fileList, Hashtable sourceTable)
 {
     if (sourceTable == null)
     {
         m_fileEnumerator   = fileList.GetEnumerator();
         m_sourceEnumerator = null;
     }
     else
     {
         m_fileEnumerator   = null;
         m_sourceEnumerator = sourceTable.GetEnumerator();
     }
     Reset();
 }