internal void ExecuteSetupFixture() { if (OnSetupFixtures == null) { return; } using var scope = ServiceProvider.CreateScope(); Task.WhenAll(OnSetupFixtures .GetInvocationList() .Cast <SetupFixtureHandler>() .Select(handler => handler(scope.ServiceProvider))) .Wait(); }
internal void ExecuteSetupFixture() { using var scope = ServiceProvider.CreateScope(); OnSetupFixtures?.Invoke(scope.ServiceProvider).Wait(); }