From a76603f00c77c1c2d8d0019cc3579de4f97e3c80 Mon Sep 17 00:00:00 2001 From: Lunastra Date: Sun, 12 Dec 2021 22:42:20 -0800 Subject: [PATCH] Rearrange Low level diagrams into a folder. --- .../ArchiveManager.cs | 4 ++++ .../ArchivingTests.cs | 15 ++++++++++++++- .../Implementations/SqlDAO.cs | 2 +- .../{ => ArchivingLL}/ArchivingWithError.png | Bin .../{ => ArchivingLL}/ArchivingWithError.svg | 0 .../{ => ArchivingLL}/ArchivingWithError.txt | 0 .../{ => ArchivingLL}/ArchivingWithSingleton.pdf | Bin .../{ => ArchivingLL}/ArchvingMasterCon.txt | 0 doc/LowLevel/{ => ArchivingLL}/archiving.pdf | Bin doc/LowLevel/{ => ArchivingLL}/archiving.txt | 0 doc/LowLevel/{ => ArchivingLL}/archiving2.png | Bin doc/LowLevel/{ => ArchivingLL}/archiving2.txt | 0 .../{ => ArchivingLL}/archivingMasterCon.pdf | Bin .../{ => ArchivingLL}/archivingSubmission.pdf | Bin .../{ => ArchivingLL}/archivingWithError.pdf | Bin .../{ => ArchivingLL}/archivingWithError2.pdf | Bin doc/LowLevel/{ => ArchivingLL}/archiving_5.txt | 0 .../{ => ArchivingLL}/archivngWithError.txt | 0 .../{ => ArchivingLL}/arcvhingMasterCon.pdf | Bin 19 files changed, 19 insertions(+), 2 deletions(-) rename doc/LowLevel/{ => ArchivingLL}/ArchivingWithError.png (100%) rename doc/LowLevel/{ => ArchivingLL}/ArchivingWithError.svg (100%) rename doc/LowLevel/{ => ArchivingLL}/ArchivingWithError.txt (100%) rename doc/LowLevel/{ => ArchivingLL}/ArchivingWithSingleton.pdf (100%) rename doc/LowLevel/{ => ArchivingLL}/ArchvingMasterCon.txt (100%) rename doc/LowLevel/{ => ArchivingLL}/archiving.pdf (100%) rename doc/LowLevel/{ => ArchivingLL}/archiving.txt (100%) rename doc/LowLevel/{ => ArchivingLL}/archiving2.png (100%) rename doc/LowLevel/{ => ArchivingLL}/archiving2.txt (100%) rename doc/LowLevel/{ => ArchivingLL}/archivingMasterCon.pdf (100%) rename doc/LowLevel/{ => ArchivingLL}/archivingSubmission.pdf (100%) rename doc/LowLevel/{ => ArchivingLL}/archivingWithError.pdf (100%) rename doc/LowLevel/{ => ArchivingLL}/archivingWithError2.pdf (100%) rename doc/LowLevel/{ => ArchivingLL}/archiving_5.txt (100%) rename doc/LowLevel/{ => ArchivingLL}/archivngWithError.txt (100%) rename doc/LowLevel/{ => ArchivingLL}/arcvhingMasterCon.pdf (100%) diff --git a/Source Code/TeamHobby.HobbyProjectGenerator.Archive/ArchiveManager.cs b/Source Code/TeamHobby.HobbyProjectGenerator.Archive/ArchiveManager.cs index 5cd427e..2eee2fe 100644 --- a/Source Code/TeamHobby.HobbyProjectGenerator.Archive/ArchiveManager.cs +++ b/Source Code/TeamHobby.HobbyProjectGenerator.Archive/ArchiveManager.cs @@ -12,6 +12,10 @@ namespace TeamHobby.HobbyProjectGenerator.Archive _conn = dataSource; } + //public IDataSource GetConnection() + //{ + // return _conn; + //} // Create the folder where the compress file will be stored public bool CreateArchiveFolder(){ diff --git a/Source Code/TeamHobby.HobbyProjectGenerator.ArchiveTests/ArchivingTests.cs b/Source Code/TeamHobby.HobbyProjectGenerator.ArchiveTests/ArchivingTests.cs index 0846dc2..869ee4e 100644 --- a/Source Code/TeamHobby.HobbyProjectGenerator.ArchiveTests/ArchivingTests.cs +++ b/Source Code/TeamHobby.HobbyProjectGenerator.ArchiveTests/ArchivingTests.cs @@ -75,8 +75,21 @@ namespace TeamHobby.HobbyProjectGenerator.ArchiveTests } - public void FolderCreationFailed() + public void CopyingToAFileTest(IDataSource sqlDAO) { + // Arrange + ArchiveManager archiveManager = new ArchiveManager(sqlDAO); + SqlDAO sqlDS = null; + + if (sqlDAO.GetType() == typeof(SqlDAO)) + { + sqlDS = (SqlDAO)sqlDAO; + } + + // Act + + + // Assert } diff --git a/Source Code/TeamHobby.HobbyProjectGenerator.DataAccess/Implementations/SqlDAO.cs b/Source Code/TeamHobby.HobbyProjectGenerator.DataAccess/Implementations/SqlDAO.cs index 5adaed0..06b919b 100644 --- a/Source Code/TeamHobby.HobbyProjectGenerator.DataAccess/Implementations/SqlDAO.cs +++ b/Source Code/TeamHobby.HobbyProjectGenerator.DataAccess/Implementations/SqlDAO.cs @@ -31,7 +31,7 @@ namespace TeamHobby.HobbyProjectGenerator.DataAccess // Getter and setter for Odbc public OdbcConnection Connection { get; set; } - public OdbcConnection getConnection() + public OdbcConnection GetConnection() { return _conn; } diff --git a/doc/LowLevel/ArchivingWithError.png b/doc/LowLevel/ArchivingLL/ArchivingWithError.png similarity index 100% rename from doc/LowLevel/ArchivingWithError.png rename to doc/LowLevel/ArchivingLL/ArchivingWithError.png diff --git a/doc/LowLevel/ArchivingWithError.svg b/doc/LowLevel/ArchivingLL/ArchivingWithError.svg similarity index 100% rename from doc/LowLevel/ArchivingWithError.svg rename to doc/LowLevel/ArchivingLL/ArchivingWithError.svg diff --git a/doc/LowLevel/ArchivingWithError.txt b/doc/LowLevel/ArchivingLL/ArchivingWithError.txt similarity index 100% rename from doc/LowLevel/ArchivingWithError.txt rename to doc/LowLevel/ArchivingLL/ArchivingWithError.txt diff --git a/doc/LowLevel/ArchivingWithSingleton.pdf b/doc/LowLevel/ArchivingLL/ArchivingWithSingleton.pdf similarity index 100% rename from doc/LowLevel/ArchivingWithSingleton.pdf rename to doc/LowLevel/ArchivingLL/ArchivingWithSingleton.pdf diff --git a/doc/LowLevel/ArchvingMasterCon.txt b/doc/LowLevel/ArchivingLL/ArchvingMasterCon.txt similarity index 100% rename from doc/LowLevel/ArchvingMasterCon.txt rename to doc/LowLevel/ArchivingLL/ArchvingMasterCon.txt diff --git a/doc/LowLevel/archiving.pdf b/doc/LowLevel/ArchivingLL/archiving.pdf similarity index 100% rename from doc/LowLevel/archiving.pdf rename to doc/LowLevel/ArchivingLL/archiving.pdf diff --git a/doc/LowLevel/archiving.txt b/doc/LowLevel/ArchivingLL/archiving.txt similarity index 100% rename from doc/LowLevel/archiving.txt rename to doc/LowLevel/ArchivingLL/archiving.txt diff --git a/doc/LowLevel/archiving2.png b/doc/LowLevel/ArchivingLL/archiving2.png similarity index 100% rename from doc/LowLevel/archiving2.png rename to doc/LowLevel/ArchivingLL/archiving2.png diff --git a/doc/LowLevel/archiving2.txt b/doc/LowLevel/ArchivingLL/archiving2.txt similarity index 100% rename from doc/LowLevel/archiving2.txt rename to doc/LowLevel/ArchivingLL/archiving2.txt diff --git a/doc/LowLevel/archivingMasterCon.pdf b/doc/LowLevel/ArchivingLL/archivingMasterCon.pdf similarity index 100% rename from doc/LowLevel/archivingMasterCon.pdf rename to doc/LowLevel/ArchivingLL/archivingMasterCon.pdf diff --git a/doc/LowLevel/archivingSubmission.pdf b/doc/LowLevel/ArchivingLL/archivingSubmission.pdf similarity index 100% rename from doc/LowLevel/archivingSubmission.pdf rename to doc/LowLevel/ArchivingLL/archivingSubmission.pdf diff --git a/doc/LowLevel/archivingWithError.pdf b/doc/LowLevel/ArchivingLL/archivingWithError.pdf similarity index 100% rename from doc/LowLevel/archivingWithError.pdf rename to doc/LowLevel/ArchivingLL/archivingWithError.pdf diff --git a/doc/LowLevel/archivingWithError2.pdf b/doc/LowLevel/ArchivingLL/archivingWithError2.pdf similarity index 100% rename from doc/LowLevel/archivingWithError2.pdf rename to doc/LowLevel/ArchivingLL/archivingWithError2.pdf diff --git a/doc/LowLevel/archiving_5.txt b/doc/LowLevel/ArchivingLL/archiving_5.txt similarity index 100% rename from doc/LowLevel/archiving_5.txt rename to doc/LowLevel/ArchivingLL/archiving_5.txt diff --git a/doc/LowLevel/archivngWithError.txt b/doc/LowLevel/ArchivingLL/archivngWithError.txt similarity index 100% rename from doc/LowLevel/archivngWithError.txt rename to doc/LowLevel/ArchivingLL/archivngWithError.txt diff --git a/doc/LowLevel/arcvhingMasterCon.pdf b/doc/LowLevel/ArchivingLL/arcvhingMasterCon.pdf similarity index 100% rename from doc/LowLevel/arcvhingMasterCon.pdf rename to doc/LowLevel/ArchivingLL/arcvhingMasterCon.pdf