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); }
public TextWorker(IFileProccessorFactory factory) { _fileProc = factory.CreateFileProcceser(); }