예제 #1
0
        private static void DownloadGoogleBookFile()
        {
            GoogleDriveClient client = new GoogleDriveClient();

            client.DownloadBookCsv();

            JsonFileGenerator fileGenerator = new JsonFileGenerator(new BookReadService(new LocalDatabaseReader()));

            fileGenerator.GenerateJsonDataFile();
            fileGenerator.PersistGoogleBooksDataIntoFile();
        }
        public void PersistGoogleBooksData()
        {
            JsonFileGenerator fileGenerator = new JsonFileGenerator(new BookReadService(new LocalDatabaseReader()));

            fileGenerator.PersistGoogleBooksDataIntoFile();
        }
        public void FileGeneration()
        {
            JsonFileGenerator fileGenerator = new JsonFileGenerator(new BookReadService(new LocalDatabaseReader()));

            fileGenerator.GenerateJsonDataFile();
        }
        public void PersistCoverHashData()
        {
            JsonFileGenerator fileGenerator = new JsonFileGenerator(new BookReadService(new LocalDatabaseReader()));

            fileGenerator.PersistCoverHashIntoFile();
        }
        public void TestFileGeneration()
        {
            JsonFileGenerator fileGenerator = new JsonFileGenerator();

            fileGenerator.GenerateJsonDataFile();
        }