This is a "scale model" project to explore what Domain Driven Design can look like in the presence of some pre-existing technology decisions:
- StructureMap for dependency inversion
- Fluent NHibernate as an ORM
- Microsoft SQL Server as the principle data store
- ASP.NET WebAPI for web services
Project directories (either do or will) contain further detail.
The PersistenceTest, ApplicationTest, UserInterface, and UserInterfaceTest projects assume that
- SQL Server is installed and running locally,
- a database exists with the name
DddExample
, and - the current user can connect using Windows Authentication
This is the connection string used by those projects app.config
and web.config
files:
Server=.;Database=DddExample;Trusted_Connection=True;
I've had mixed luck with the NUnit adapter for Visual Studio (specifically with test discovery) so the RunAllTests.ps1 script in the root directory relies instead on the NUnit 3 Console runner, which I installed using Chocolatey:
choco install nunit-console-runner