简体   繁体   中英

Unit testing WCF Rest Service with Entity Framework

I created a wcf rest service and added a entity Framework database, having issues doing unit testing some of the methods. I get error asserting the connection string is not there or invalid. I am using the actual database for testing. Firstly, i copied in the web.config file into the test project, is there any thing else i need to do, such as editing this config file

假设您的测试项目不是Web项目,请记住将配置文件重命名为app.config

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM