Esempio n. 1
0
        private static void InitializeTestExecutionBehaviours(IExecutionProvider testExecutionProvider)
        {
            var observers = UnityContainerFactory.GetCurrentContainer().ResolveAll <ITestBehaviourObserver>();

            foreach (var observer in observers)
            {
                observer.Subscribe(testExecutionProvider);
            }
        }
Esempio n. 2
0
        public TestBase()
        {
            if (!UnityContainerFactory.IsContainerEmpty())
            {
                UnityContainerFactory.ResetContainer();
            }

            Container = UnityContainerFactory.GetCurrentContainer();
            Container.RegisterInstance(Container);
            _currentTestExecutionProvider = new TestExecutionProvider();
        }