dli.net_sourcecode

Free example source code from "Dependency Injection with .NET" from http://manning.com/seemann/

  • 所有者: draptik/dli.net_sourcecode
  • 平台:
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Most of the solutions in this folder contains unit tests written with xUnit.net.

REQUIRED COMPONENTS

All solutions are built using Visual Studio 2010 on .NET 4.

All web applications (except CampaignManagement.sln) also require ASP.NET MVC 3.

The unit tests use open source libraries that are needed to be able to compile and run the tests. They are all included as NuGet packages, but if you are interested they can be found at the following addresses:
xUnit.net: http://xunit.codeplex.com/
AutoFixture: http://autofixture.codeplex.com/
Moq: http://code.google.com/p/moq

Some of the solutions themselves use various open source DI Containers to compile and run:
Castle Windsor: http://castleproject.org/
StructureMap: http://structuremap.github.com/structuremap/
Spring.NET: http://www.springframework.net/
Autofac: http://code.google.com/p/autofac/
Unity: http://unity.codeplex.com/

DATABASE SETUP

The applications also require that their databases are set up correctly. Each application requiring a database have associated T-SQL scripts, although SimpleCommerce shares the script with MarysECommerce.

In the case of ComplexCommerce, you must add the database tables to a database that has been prepared in advance for ASP.NET services (you can, e.g. use aspnet_regsql.exe). The file DBSchema.sql contains further instructions.

IIS SETUP

The CommerceService solutions must be hosted in IIS for the WpfProductManagementClient solution to work.

  • Add an application to Default Web Site and call it "CommerceService". Point it to the root of the CommerceService folder.
  • Set up permissions to the folder so that the proper hosting process can read the files.
  • Grant the IIS user permissions to the database used by CommerceService. Graning the database roles db_datareader and db_datawriter works fine.

(last updated 2011.04.11 while finalizing the manuscript)

主要指标

概览
名称与所有者draptik/dli.net_sourcecode
主编程语言C#
编程语言PowerShell (语言数: 3)
平台
许可证
所有者活动
创建于2012-06-13 19:58:28
推送于2012-06-18 23:03:56
最后一次提交2012-06-19 01:03:52
发布数0
用户参与
星数6
关注者数1
派生数4
提交数10
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?