public void PassDependencies(IRunnerFactory RunnerFactory, LightScript TestFixture, CommandRunningCallback Callback, ValueWrapper <bool> ShouldCancelRun) { // if ShouldCancelRun is set to true, the test run will stop // RunnerFactory is useful if command is nested and need to get other runners // TestFixture can be used to get nested commands m_Callback = Callback; }
private void EnsureBuilt(Pattern pattern, ref IRunnerFactory runner) { if (runner == null) { runner = patternCompiler.CompileAsFactory(pattern); } }
public TestData(IRunnerFactory RunnerFactory, LightScript TestFixture, CommandRunningCallback Callback, bool ShouldCancelRun, bool ShouldFailTest) { this.RunnerFactory = RunnerFactory; this.TestFixture = TestFixture; this.CommandRunningCallback = Callback; this.ShouldCancelRun = ShouldCancelRun; this.ShouldFailTest = ShouldFailTest; }
public CloneCommand(String workingDirectory, IRunnerFactory runnerFactory, String url, String destination) : base(workingDirectory, runnerFactory) { _destination = destination; _url = url; }
public ChangeViewModel(IParserFinder parserFinder, IRunnerFactory runnerFactory, String workingDirectory, Change change) { _parserFinder = parserFinder; _runnerFactory = runnerFactory; _workingDirectory = workingDirectory; _change = change; }
public TestRunner(IAssetGuidManager AssetGuidManager, IScreenStateThread ScreenStateThread, IFeatureDetectionThread FeatureDetectionThread, IRunnerFactory RunnerFactory, IPluginLoader PluginLoader, IRuntimeSettings RuntimeSettings, IRuntimeAssetManager RuntimeAssetManager) { this.AssetGuidManager = AssetGuidManager; this.ScreenStateThread = ScreenStateThread; this.FeatureDetectionThread = FeatureDetectionThread; this.RunnerFactory = RunnerFactory; this.PluginLoader = PluginLoader; this.RuntimeSettings = RuntimeSettings; this.RuntimeAssetManager = RuntimeAssetManager; }
public CloneRepositoryViewModel(IFileSystem fileSystem, IRunnerFactory runnerFactory, IEventAggregator bus) : base(fileSystem, runnerFactory, bus) { }
public RunnersProvider(IList <IConfig> runnerConfigurations, IRunnerFactory runnerFactory) { this.runnerConfigurations = runnerConfigurations; this.runnerFactory = runnerFactory; }
public void SetUp() { _runnerFactory = new DefaultRunnerFactory(); _applicationContext = new Random().Next(); _migrationList = new SortedList<long, IMigration>(); _runnerContextMock = new Mock<IRunnerContext>(MockBehavior.Loose); _processorMock = new Mock<IMigrationProcessor>(MockBehavior.Loose); _migrationLoaderMock = new Mock<IMigrationLoader>(MockBehavior.Loose); _profileLoaderMock = new Mock<IProfileLoader>(MockBehavior.Loose); _announcer = new Mock<IAnnouncer>(); _stopWatch = new Mock<IStopWatch>(); var options = new ProcessorOptions { PreviewOnly = false }; _processorMock.SetupGet(x => x.Options).Returns(options); _runnerContextMock.SetupGet(x => x.Namespace).Returns("FluentMigrator.Tests.Integration.Migrations"); _runnerContextMock.SetupGet(x => x.Announcer).Returns(_announcer.Object); _runnerContextMock.SetupGet(x => x.StopWatch).Returns(_stopWatch.Object); _runnerContextMock.SetupGet(x => x.Target).Returns(Assembly.GetExecutingAssembly().ToString()); _runnerContextMock.SetupGet(x => x.Connection).Returns(IntegrationTestOptions.SqlServer2008.ConnectionString); _runnerContextMock.SetupGet(x => x.Database).Returns("sqlserver"); _runnerContextMock.SetupGet(x => x.ApplicationContext).Returns(_applicationContext); _runnerContextMock.SetupGet(x => x.Factory).Returns(_runnerFactory); _migrationLoaderMock.SetupGet(x => x.Migrations).Returns(_migrationList); _runner = new MigrationRunner(Assembly.GetAssembly(typeof(MigrationRunnerTests)), _runnerContextMock.Object, _processorMock.Object) { MigrationLoader = _migrationLoaderMock.Object, ProfileLoader = _profileLoaderMock.Object, }; _fakeVersionLoader = new TestVersionLoader(_runner, _runner.VersionLoader.VersionTableMetaData); _runner.VersionLoader = _fakeVersionLoader; _processorMock.Setup(x => x.SchemaExists(It.Is<string>(s => s == _runner.VersionLoader.VersionTableMetaData.SchemaName))) .Returns(true); _processorMock.Setup(x => x.TableExists(It.Is<string>(s => s == _runner.VersionLoader.VersionTableMetaData.SchemaName), It.Is<string>(t => t == _runner.VersionLoader.VersionTableMetaData.TableName))) .Returns(true); }