public void ExportTest()
        {
            var xlsxRepository = new XlsxExportingRepository(new FilePath("out.xlsx"));
            var interactor     = new ExportingTemplateXlsxInteractor(xlsxRepository);
            var response       = interactor.Execute(new ExportingTemplateXlsxRequest());

            Assert.IsTrue(response.Result);
        }
Пример #2
0
        public int Execute(ICommandOption opt)
        {
            var option = (CommandOption)opt;

            var repository = new XlsxExportingRepository(new FilePath(option.OutputPath));
            var interactor = new ExportingTemplateXlsxInteractor(repository);

            var response = interactor.Execute(new ExportingTemplateXlsxRequest());

            return(response.Result ? 0 : 1);
        }