If your project has an App.config file and a Web.config file, you will want to link them together so that they share the connection string. It is easy to do. In the * .config files add the line:
<connectionStrings configSource="WebCS.config" />
Webcs.config will look like this:
<connectionStrings>
<add name="YourConnString" connectionString="Data Source=Server;Initial Catalog=YourDB;User ID=SQLID;Password=Password" providerName="System.Data.SqlClient"/>
</connectionStrings>
This will allow you to reference a single connection string from multiple locations and simplify connecting connection strings that vary on development, testing, and deployment servers.
. TDD DLL, .Config , , , . , DLL Business Logic - " " - ASP.NET. , -, DLL - . , .