Skip to content

Test Attempt#11

Open
akshayvyas1 wants to merge 1 commit into
seanogt:masterfrom
akshayvyas1:master
Open

Test Attempt#11
akshayvyas1 wants to merge 1 commit into
seanogt:masterfrom
akshayvyas1:master

Conversation

@akshayvyas1

Copy link
Copy Markdown

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