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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?