Skip to content

This is an n-tier architecture example applied to a web project.

License

Notifications You must be signed in to change notification settings

lionelrepellin/n-tier-architecture-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N-tier Architecture Sample

What is it ?

This is an example of n-tier architecture applied to a web project.

Points of interest

  • 3 layers: Domain, Data Access Layer (Entity Framework), Business, Web app. (only the MVC Controller is used in this sample)
  • the repository returns Customers entities
  • the serice returns CustomerDatas objects (aggregate of Customer and other informations if needed)
  • an implementation of IUnitOfWork is used to Add, Remove and Save entities to the repository
  • AutoMapper is used to convert Customers to CustomerDatas (and reverse)
  • Unity is used to inject dependencies through the constructors
  • all methods are tested in the tests project (NUnit, Moq)

Code Map generated with Visual Studio 2015

Code Map

Copyright and license

Code released under the MIT license.

About

This is an n-tier architecture example applied to a web project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published