public void Calls_RecursivelyBuildQueueFromPath_method_after_unpacking_zip()
        {
            var textTemplateZipProcessor = new TextTemplateZipProcessor.StatefulT4Processor.BatchProcessor.TextTemplateZipProcessor(new DummyExtractZipToDirectoryService(), mocker.GetMock<IRecursivelyRenameFilesAndFoldersByConvention>().Object, mocker.GetMock<ICreateQueueFromPathService>().Object, mocker.GetMock<IQueueProcessorService>().Object, mocker.GetMock<IRecursivelyDeleteTtFilesInPathService>().Object);
            try
            {
                textTemplateZipProcessor.ProcessZip("pathToZip", "outputPath");
            }
            catch (Exception) { }

            mocker.GetMock<ICreateQueueFromPathService>()
                .Verify(a => a.RecursivelyBuildQueueFromPath(It.IsAny<string>()), Times.Never());
        }
Пример #2
0
        public void Calls_RecursivelyBuildQueueFromPath_method_after_unpacking_zip()
        {
            var textTemplateZipProcessor = new TextTemplateZipProcessor.StatefulT4Processor.BatchProcessor.TextTemplateZipProcessor(new DummyExtractZipToDirectoryService(), mocker.GetMock <IRecursivelyRenameFilesAndFoldersByConvention>().Object, mocker.GetMock <ICreateQueueFromPathService>().Object, mocker.GetMock <IQueueProcessorService>().Object, mocker.GetMock <IRecursivelyDeleteTtFilesInPathService>().Object);

            try
            {
                textTemplateZipProcessor.ProcessZip("pathToZip", "outputPath");
            }
            catch (Exception) { }

            mocker.GetMock <ICreateQueueFromPathService>()
            .Verify(a => a.RecursivelyBuildQueueFromPath(It.IsAny <string>()), Times.Never());
        }