How to call Application_Start () from the TestInitialize method?

I am working with unit testing for an MVC application using a Visual Studio test project. I need to call a method Application_start()from my TestInitialiseunit test method , because it Application_start()initializes some global values ​​needed for my application. I also copied the necessary information from web.configto app.configmy test application.

How can i do this?

+3
source share
1 answer

Application_Start, , unit test. , , , , unit test.

+1

Source: https://habr.com/ru/post/1760866/


All Articles