Ejemplo n.º 1
0
        public void TestCreateGoogleSpreadQuickClient()
        {
            var client = new ClientBuilder().Build("");

            client.IsInstanceOf <GoogleSpreadQuickClient>();
            client.Export(exportCollections: new List <Sample>()
            {
                new Sample()
                {
                    Name = "hoge", Piyo = 1
                }
            });
        }
Ejemplo n.º 2
0
        /// <summary>
        /// On Execute the command.
        /// </summary>
        protected override void OnExecute()
        {
            var list   = Enumerable.Range(0, 200).Select(i => $"Sample_Message-{i}").ToList();
            var client = new ClientBuilder().Build(ExcelSpreadSheetSettings.Default(), OutputFilePath);

            if (!Directory.Exists(BaseOutputDirectory))
            {
                Directory.CreateDirectory(BaseOutputDirectory);
            }
            if (File.Exists(OutputFilePath))
            {
                Console.WriteLine("The file already exists. Please check the file.");
            }
            else
            {
                client.Export(list);
            }
        }