Exemplo n.º 1
0
        public void ShouldInitializePlugins()
        {
            var plugin = Mock.Of <ICorePlugin>();

            _pluginLoader.Setup(_ => _.Load()).Returns(new[] { plugin });

            _target.InitializePlugins();

            _pluginProvider.Verify(_ => _.Initialize(plugin), Times.Once);
        }
        /// <summary>
        ///   Prepares environment.
        /// </summary>
        public void Prepare()
        {
            _pluginInitializer.InitializePlugins();

            CreateAdminRole();

            CreateTestProject();

            _dataSourceInitializer.Initialize();

            _dataSourceAccessInitializer.Initialize();
        }