Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Attempt #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Test Attempt #11

wants to merge 1 commit into from

Conversation

akshayvyas1
Copy link

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

  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.

…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.
@akshayvyas1 akshayvyas1 changed the title Test Attenmpt Test Attempt Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant