示例#1
0
        public void WhenIInstallTheTemplatePackFromLocalPackage(string templatePackName)
        {
            //TODO: Use template pack name
            var execInfo = _processManagementService.Start("../../devops/install-template-pack", string.Empty);

            execInfo.ShouldBeSuccessful();
        }
示例#2
0
 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);
        }
示例#4
0
 public void Start()
 {
     dbInstanceName     = $"test_db_{Guid.NewGuid()}";
     webServerProcessId = processManagementService.Start("dotnet",
                                                         $"run " +
                                                         $"Mongo:ConnectionString={ConnectionString} " +
                                                         $"Mongo:Database={dbInstanceName} {applicationPathInfo.Executable} " +
                                                         $"--launch-profile MongoPocWebApplication1");
 }
示例#5
0
        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.");
            }
        }
示例#6
0
        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();
        }
示例#7
0
 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();
        }