We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a42746 commit ef0a4c9Copy full SHA for ef0a4c9
src/MyTested.AspNetCore.Mvc.Abstractions/Internal/Application/TestApplication.cs
@@ -197,14 +197,14 @@ public static TestConfiguration Configuration()
197
198
public static void TryInitialize()
199
{
200
- if (Configuration().General().NoStartup())
201
- {
202
- return;
203
- }
204
-
205
lock (Sync)
206
207
- if (!initialiazed && Configuration().General().AutomaticStartup())
+ var configuration = Configuration().General();
+
+ if (!initialiazed
+ && StartupType == null
+ && !configuration.NoStartup()
+ && configuration.AutomaticStartup())
208
209
var defaultStartupType = TryFindDefaultStartupType();
210
0 commit comments