From c87b3132eec4b87a8da9f276e3c4456c5afad25d Mon Sep 17 00:00:00 2001 From: Sharon Smith Date: Tue, 28 Jul 2026 17:48:58 +0100 Subject: [PATCH 1/2] Add README.md for Library App with project details and usage instructions --- .../AccelerateDevGHCopilot/README.md | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 LabFiles/02-analyze-document-code/AccelerateDevGHCopilot/README.md diff --git a/LabFiles/02-analyze-document-code/AccelerateDevGHCopilot/README.md b/LabFiles/02-analyze-document-code/AccelerateDevGHCopilot/README.md new file mode 100644 index 0000000..bb16473 --- /dev/null +++ b/LabFiles/02-analyze-document-code/AccelerateDevGHCopilot/README.md @@ -0,0 +1,61 @@ +# Library App + +## Description + +Library App is a .NET console-based library management application. It models core library entities (books, patrons, and loans), applies business rules through application services, and uses JSON-backed repositories for persistence. The solution is organized with a clean separation between domain logic, console UI, infrastructure, and automated tests. + +## Project Structure + +- src + - Library.ApplicationCore + - Entities + - Enums + - Interfaces + - Services + - Library.ApplicationCore.csproj + - Library.Console + - Program.cs + - ConsoleApp.cs + - ConsoleState.cs + - CommonActions.cs + - appSettings.json + - Json + - Library.Console.csproj + - Library.Infrastructure + - Data + - Library.Infrastructure.csproj +- tests + - UnitTests + - ApplicationCore + - LoanFactory.cs + - PatronFactory.cs + - UnitTests.csproj +- README.md + +## Key Classes and Interfaces + +- Entities + - Author, Book, BookItem, Loan, Patron +- Application interfaces + - ILoanRepository, ILoanService, IPatronRepository, IPatronService +- Domain services + - LoanService, PatronService +- Console layer + - ConsoleApp +- Infrastructure data access + - JsonData, JsonLoanRepository, JsonPatronRepository + +## Usage + +1. Prerequisites + - .NET SDK installed (recommended current LTS). +2. Restore and build + - dotnet build src/Library.Console/Library.Console.csproj +3. Run the application + - dotnet run --project src/Library.Console/Library.Console.csproj +4. Run unit tests + - dotnet test tests/UnitTests/UnitTests.csproj + +## License + +This project is licensed under the MIT License. See the repository-level LICENSE file for details. From 357d8ef3f85465b859e50b8aedf2481a0f0a7647 Mon Sep 17 00:00:00 2001 From: Sharon Smith Date: Tue, 28 Jul 2026 18:11:04 +0100 Subject: [PATCH 2/2] Refactor README.md for improved formatting and clarity --- .../AccelerateDevGHCopilot/README.md | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/LabFiles/02-analyze-document-code/AccelerateDevGHCopilot/README.md b/LabFiles/02-analyze-document-code/AccelerateDevGHCopilot/README.md index bb16473..de54e30 100644 --- a/LabFiles/02-analyze-document-code/AccelerateDevGHCopilot/README.md +++ b/LabFiles/02-analyze-document-code/AccelerateDevGHCopilot/README.md @@ -7,54 +7,54 @@ Library App is a .NET console-based library management application. It models co ## Project Structure - src - - Library.ApplicationCore - - Entities - - Enums - - Interfaces - - Services - - Library.ApplicationCore.csproj - - Library.Console - - Program.cs - - ConsoleApp.cs - - ConsoleState.cs - - CommonActions.cs - - appSettings.json - - Json - - Library.Console.csproj - - Library.Infrastructure - - Data - - Library.Infrastructure.csproj + - Library.ApplicationCore + - Entities + - Enums + - Interfaces + - Services + - Library.ApplicationCore.csproj + - Library.Console + - Program.cs + - ConsoleApp.cs + - ConsoleState.cs + - CommonActions.cs + - appSettings.json + - Json + - Library.Console.csproj + - Library.Infrastructure + - Data + - Library.Infrastructure.csproj - tests - - UnitTests - - ApplicationCore - - LoanFactory.cs - - PatronFactory.cs - - UnitTests.csproj + - UnitTests + - ApplicationCore + - LoanFactory.cs + - PatronFactory.cs + - UnitTests.csproj - README.md ## Key Classes and Interfaces - Entities - - Author, Book, BookItem, Loan, Patron + - Author, Book, BookItem, Loan, Patron - Application interfaces - - ILoanRepository, ILoanService, IPatronRepository, IPatronService + - ILoanRepository, ILoanService, IPatronRepository, IPatronService - Domain services - - LoanService, PatronService + - LoanService, PatronService - Console layer - - ConsoleApp + - ConsoleApp - Infrastructure data access - - JsonData, JsonLoanRepository, JsonPatronRepository + - JsonData, JsonLoanRepository, JsonPatronRepository ## Usage 1. Prerequisites - - .NET SDK installed (recommended current LTS). + Install the .NET SDK (recommended current LTS). 2. Restore and build - - dotnet build src/Library.Console/Library.Console.csproj + Command: `dotnet build src/Library.Console/Library.Console.csproj` 3. Run the application - - dotnet run --project src/Library.Console/Library.Console.csproj + Command: `dotnet run --project src/Library.Console/Library.Console.csproj` 4. Run unit tests - - dotnet test tests/UnitTests/UnitTests.csproj + Command: `dotnet test tests/UnitTests/UnitTests.csproj` ## License