Test Attempt#11
Open
akshayvyas1 wants to merge 1 commit into
Open
Conversation
…er their uses. This will make it more resuable and easy to mainain. AnyCompany.Dal 1. Contains all the data access classes. 2. If Customer repository was not Static or I was allowed to make it non static then I would like to create a repository base class and have connection string there. All other repository would inherit it. 3. Dapper can be used here to covert the result from store procedure or query to direct domain object. 4. I would also like to move inline query to stored procedure. AnyCompany.Bll 1. Contains all the business logic classes. AnyCompany.Domain 1. Contains all the domain classes. AnyCompnay.Tests 1. Contains the test class to test order service. Ideally we should have 2 test projects here 1. Integration Test - To check the data layer or other integration classes. 2. Unit test - For all other classes , we can mock the Repository Classes here Project is now ready to be used in other applications ( WebApi, Application). Note - We can use various Nuget app like Ninject , Dapper, Entity framework as required for further extention.
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.
I have tried to divide this 1 project in multiple small projects as per their uses. This will make it more reusable and easy to maintain.
AnyCompany.Dal
class and have connection string there. All other repository would inherit it.
AnyCompany.Bll
AnyCompany.Domain
AnyCompnay.Tests
Ideally we should have 2 test projects here
Project is now ready to be used in other applications ( WebApi, Application).
Note - We can use various Nuget app like Ninject , Dapper, Entity framework as required for further extention.