public void GetFileNamesInDirectory() { var documentArchiveProcess = new DocumentArchivingProcess(); //Use a docuemnt type that exists. The DocumentDirectory property for this document type will be used in the businessclass //to retreive file names for the specified directory const int documentTypeId = 1; //retrieve files in directory var fileQueue = documentArchiveProcess.GetFileNamesInDirectory(documentTypeId); //Check if there are files in the queue Assert.NotNull(fileQueue); for (int i = 1; i <= fileQueue.Count(); i++) { //Get first items in queue and write to debug window var fileName = (string)fileQueue.Dequeue(); System.Diagnostics.Debug.WriteLine(fileName); } }
/// <summary> /// Constructor /// </summary> public DocumentsController() { _documentArchivingProcess = new DocumentArchivingProcess(); _documentTypeBL = new DocumentTypeBL(); _customerBL = new CustomerBL(); }
public DocumentTypesController() { _documentArchivingProcess = new DocumentArchivingProcess(); }