How to check asp.net server management

We have developed a number of ASP.Net controls, and we need to test them. I want to instantiate a control, set some properties, call CreateChildControls and check the control hierarchy.

I ran into a number of problems:

  • Controls rely on HttpContext
  • CreateChildControls is private

Even adding one child control to a collection of controls calls the ResolveAdapter () method, which uses the HttpContext.

How can I get around this?

ps I do not want to check the controls on the page (!).

+3
source share
1 answer

, , , . , HttpContext.

, , , . , , - -, .

- /Dll - Leaky Abstractions.

+1

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


All Articles