Esempio n. 1
0
        public ISuiteResult Run(IIntent intent, ISuiteProvider provider)
        {
            if (provider.Ignored)
            {
                return(_resultFactory.CreateIgnoredSuiteResult(provider));
            }

            using (_resourceManager.Acquire(provider.Resources))
            {
                var suitePairs = Pair(intent.Intents, provider.SuiteProviders);
                var testPairs  = Pair(intent.Intents, provider.TestProviders);

                return(RunWithResourcesAcquired(intent, provider, suitePairs, testPairs));
            }
        }