Ejemplo n.º 1
0
 public TestCache(Lifetime lifetime, ISolution solution, IUnitTestingSettingsAccessor settingsAccessor,
                  IShellLocks shellLocks, IPsiConfiguration psiConfiguration, ISettingsStore settingsStore,
                  KarmaTestProvider testProvider, JasmineElementFactory jasmineFactory,
                  IPersistentIndexManager persistentIndexManager, IJavaScriptDependencyManager javaScriptDependencyManager)
 {
     _lifetime                    = lifetime;
     _solution                    = solution;
     _settingsAccessor            = settingsAccessor;
     _shellLocks                  = shellLocks;
     _psiConfiguration            = psiConfiguration;
     _testProvider                = testProvider;
     myJasmineFactory             = jasmineFactory;
     _persistentIndexManager      = persistentIndexManager;
     _javaScriptDependencyManager = javaScriptDependencyManager;
     _settingsStore               = settingsStore.BindToContextLive(lifetime, ContextRange.ManuallyRestrictWritesToOneContext(solution.ToDataContext()), BindToContextFlags.Normal);
     _settingsStore.Changed.Advise(lifetime, OnSettingsChange);
     Active = new Property <bool>(lifetime, "KarmaTestCache", true);
 }
Ejemplo n.º 2
0
		public TestCache(Lifetime lifetime, ISolution solution, IUnitTestingSettingsAccessor settingsAccessor,
			IShellLocks shellLocks, IPsiConfiguration psiConfiguration, ISettingsStore settingsStore,
			KarmaTestProvider testProvider, JasmineElementFactory jasmineFactory,
			IPersistentIndexManager persistentIndexManager, IJavaScriptDependencyManager javaScriptDependencyManager)
		{
			_lifetime = lifetime;
			_solution = solution;
			_settingsAccessor = settingsAccessor;
			_shellLocks = shellLocks;
			_psiConfiguration = psiConfiguration;
			_testProvider = testProvider;
			myJasmineFactory = jasmineFactory;
			_persistentIndexManager = persistentIndexManager;
			_javaScriptDependencyManager = javaScriptDependencyManager;
			_settingsStore = settingsStore.BindToContextLive(lifetime, ContextRange.ManuallyRestrictWritesToOneContext(solution.ToDataContext()), BindToContextFlags.Normal);
			_settingsStore.Changed.Advise(lifetime, OnSettingsChange);
			Active = new Property<bool>(lifetime, "KarmaTestCache", true);
		}
 public KarmaServiceProvider(Lifetime lifetime, ISolution solution, KarmaTestProvider testProvider)
 {
     TestProvider = testProvider;
 }
 public JasmineTestFileExplorer(KarmaTestProvider provider, JasmineElementFactory factory, IJavaScriptDependencyManager javaScriptDependencyManager)
 {
     myProvider = provider;
     myFactory = factory;
     myJavaScriptDependencyManager = javaScriptDependencyManager;
 }
Ejemplo n.º 5
0
 public JasmineTestFileExplorer(KarmaTestProvider provider, JasmineElementFactory factory, IJavaScriptDependencyManager javaScriptDependencyManager)
 {
     myProvider = provider;
     myFactory  = factory;
     myJavaScriptDependencyManager = javaScriptDependencyManager;
 }
 public KarmaServiceProvider(Lifetime lifetime, ISolution solution, KarmaTestProvider testProvider)
 {
     TestProvider = testProvider;
 }