R
R
Ruslan2013-12-21 09:34:59
ASP.NET
Ruslan, 2013-12-21 09:34:59

How to access web.config from unit tests for asp.net mvc project?

Hello.
I'm trying to create unit tests for my asp.net mvc3 project. I ran into a problem: the methods under test cannot access the web.config file (the settings inside it), because the classes are created in the test environment.
Question: how to make available what is in web.config in a unit test.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2013-12-21
@Razbezhkin

Found a working answer:
stackoverflow.com/questions/516233/how-to-use-web-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question