示例#1
0
        public void CanCreatePdfFileProcceser()
        {
            string fileName             = "test.pdf";
            FileProcceserFactory target = new FileProcceserFactory(fileName);

            IFileProcceser <string> fileProcceser = target.CreateFileProcceser();
            bool result = fileProcceser is PdfFileProcceser;

            Assert.IsTrue(result);
        }
示例#2
0
 public TextWorker(IFileProccessorFactory factory)
 {
     _fileProc = factory.CreateFileProcceser();
 }