public collection_resolver_tests() { var factory = new TestConfigurationFactory(); var cfg = new DestinationConfiguration(typeof (IntegerDest)); cfg.From(typeof (IntegerSource)); integerComponentElementConfig = factory.CreateBindableConfiguration(cfg.TakeSnapshot()); contextualizer = new TestContextualizer(); }
public async Task RunBeforeAnyTests() { var configuration = TestConfigurationFactory.Build(); await using var dbContext = TestDatabase.CreateSheepItDbContext(configuration); dbContext.Database.EnsureDeleted(); dbContext.Database.Migrate(); }
private static CommandsOutput RunCommand(string[] commands, VariableForEnvironment[] variables) { var config = TestConfigurationFactory.Build(); var processSettings = new DeploymentProcessSettings(config); var commandRunner = new BashCommandsRunner( workingDir: TestContext.CurrentContext.TestDirectory, bashPath: processSettings.Shell.Bash.ToString() ); var processOutput = commandRunner.Run(commands, variables); PrintResults(processOutput); return(processOutput); }
private IDisposable SetMainWindow(WindowsFramework framework) { try { Keyboard = Keyboard.Instance; var configuration = TestConfigurationFactory.Create(framework); Application = configuration.LaunchApplication(); MainWindow = configuration.GetMainWindow(Application); return(new ShutdownApplicationDisposable(this)); } catch (Exception e) { logger.Error("Failed to launch application and get main window", e); if (Application != null) { Application.Close(); } throw; } }
public list_property_binder_tests() { configFactory = new TestConfigurationFactory(); }
public static IExecuteMapping ToExecutable(this ITakeDestinationConfigurationSnapshot cfg,Type sourceType,params ITakeDestinationConfigurationSnapshot[] otherCfgs) { var bindable = new TestConfigurationFactory().CreateBindableConfiguration(cfg.TakeSnapshot()); return bindable.CreateExecutableMapping(sourceType); }
public complex_model_mapping_tests() { contextualizer = new TestContextualizer(); configFactory=new TestConfigurationFactory(); container = new DestinationConfigurationContainer(null, configFactory); }
public mapping_configuration_tests() { configFactory=new TestConfigurationFactory(); contextualizer=new TestContextualizer(); }
public conventional_mapping_tests() { contextualizer = new TestContextualizer(); bindableFactory = new TestConfigurationFactory(); }