public void WhenIInstallTheTemplatePackFromLocalPackage(string templatePackName) { //TODO: Use template pack name var execInfo = _processManagementService.Start("../../devops/install-template-pack", string.Empty); execInfo.ShouldBeSuccessful(); }
public void Start(string args) { processId = processManagementService.Start( "dotnet", args); Task.Delay(TimeSpan.FromSeconds(2)).Wait(); }
public int Start() { var handle = _processManagementService.Start(MongoDbService, $"--dbpath {MongoDbRoot}"); //TODO: Wait while the process starts - Application.WaitWhileBusy()... Task.Delay(TimeSpan.FromSeconds(5)).Wait(); return(handle); }
public void Start() { dbInstanceName = $"test_db_{Guid.NewGuid()}"; webServerProcessId = processManagementService.Start("dotnet", $"run " + $"Mongo:ConnectionString={ConnectionString} " + $"Mongo:Database={dbInstanceName} {applicationPathInfo.Executable} " + $"--launch-profile MongoPocWebApplication1"); }
private void AssertSolutionBuildsSuccessfullyForAllConfigurations(string folderName, string tempPath) { var path = Path.Combine(tempPath, folderName); var configs = new[] { "DebugWithFake", "Release" }; foreach (var config in configs) { var execInfo = _processManagementService.Start(Path.Combine(path, "dotnet"), $"build -c {config}"); execInfo.ShouldBeSuccessful(); execInfo.OutputStrings.Should().ContainMatch("Build succeeded."); } }
private void ExecuteTemplate(string folderName, string shortName, IEnumerable <ArrangeCodeGenerationData> options = null) { var tempPath = Path.GetTempPath(); var path = Path.Combine(tempPath, folderName); var optionsLine = options == null ? null : string.Join(" ", options.Select(k => $"{k.Name} {k.Value}")); var args = $"new {shortName} {optionsLine}"; //TODO: Needs dedicated documentation var execInfo = _processManagementService.Start(Path.Combine(path, "dotnet"), args); execInfo.ShouldBeSuccessful(); }
public int Start() { return(processManagementService.Start("docker-compose", $"up -d")); }
public void WhenIInstallTheTemplateForLocationViaBatchFile(string location) { var execInfo = _processManagementService.Start("../../devops/install-template", location, 30000); execInfo.ShouldBeSuccessful(); }