static void Main(string[] args) { Console.WriteLine("Enter a path, filename, and extension (.xlsx) for where to write the data dictionary. Then press <ENTER>"); string fileName = Console.ReadLine(); // Create the report DataDictionaryCreationService service = new DataDictionaryCreationService( new DataDictionaryTableDataProvider( new GetDbTableColumnInfoService( new BaseDatabaseConnection() ), new TableExclusionRulesService(), new TableModelObjectCreatorService() ), new DataDictionaryStoredProcFuncDataProvider( new GetDbStoredProcFuncInfo( new BaseDatabaseConnection() ), new StoredProcFuncModelObjectCreatorService() ), new DataDictionaryCreateClosedXMLReport( new MissingDescriptionsSheetCreator(), new StoredProcFuncSheetCreator() ) ); service.Execute(fileName); // Test Console.WriteLine(""); }
public void DataDictionaryCreationService_Execute_ArgumentNullExceptionThrownWhenNullFilename() { // Arrange / Act / Assert _biz.Execute(null); }