refactor: Namespace restructuring and unhappy path tests#77
Merged
Conversation
- Refactor namespaces to follow folder structure convention - NetConduit.Enums, NetConduit.Events, NetConduit.Exceptions - NetConduit.Interfaces, NetConduit.Models, NetConduit.Transits - Move ITransit and IMessageTransit to Interfaces folder - Add 53 unhappy path tests for API misuse scenarios - Add transit eagerness tests for lazy and eager initialization - Update all dependent files with proper using statements - Add GlobalUsings.cs for unit tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive namespace refactoring to follow folder structure convention, plus extensive unhappy path test coverage.
Changes
Namespace Restructuring
All classes now follow the convention: folder path → namespace (omitting
src/and starting withNetConduit).src/NetConduit/Enums/NetConduit.Enumssrc/NetConduit/Events/NetConduit.Eventssrc/NetConduit/Exceptions/NetConduit.Exceptionssrc/NetConduit/Interfaces/NetConduit.Interfacessrc/NetConduit/Models/NetConduit.Modelssrc/NetConduit/Transits/NetConduit.TransitsInterface Relocation
ITransitandIMessageTransitfromTransits/toInterfaces/folderNew Tests
ObjectDisposedExceptionafter disposalInvalidOperationExceptionfor incorrect state usageNotSupportedExceptionfor unsupported operationsArgumentNullExceptionfor null parametersOperationCanceledExceptionUpdated Imports
usingstatements across all dependent files:GlobalUsings.csto unit tests for common importsTesting