public void Should_detect_when_no_projects_exist()
 {
     //Given that the path already exists;
     var tempPath = GetNewEmptyPathThatExists();
     var bs = new TestAppBootStrapper(tempPath);
     bs.DetectProjectMode().Should().Be(AppProjectsStructureMode.None);
 }
        public void Should_detect_when_multiple_projects_exist_with_correct_count_when_three()
        {
            var tempPath = GetPathWithThreeProjects();
            var bs = new TestAppBootStrapper(tempPath);

            bs.DetectProjectMode().Should().Be(AppProjectsStructureMode.MultipleUnchosen);
            bs.GetProjects().Count().Should().Be(3);
        }
        public void Should_detect_when_single_projects_exist()
        {
            //Given that the path already exists;
            var tempPath = GetNewEmptyPathThatExists();
            // make project folder

            var projectPath = Path.Combine(tempPath, "MyProject");
            Directory.CreateDirectory(projectPath);
            var bs = new TestAppBootStrapper(tempPath);
            bs.DetectProjectMode().Should().Be(AppProjectsStructureMode.Single);
            bs.SetProjectNameToSingle();

            bs.GetProjectBootstrapper("Reports", "Datasources", "Actions").ProjectPath.Should().Be(projectPath);
        }
        public void Should_detect_when_multiple_projects_exist_with_correct_count_when_one()
        {
            var tempPath = GetNewEmptyPathThatExists();
            Directory.CreateDirectory(Path.Combine(tempPath, "Project1"));
            var bs = new TestAppBootStrapper(tempPath);

            bs.DetectProjectMode().Should().Be(AppProjectsStructureMode.Single);
            bs.GetProjects().Count().Should().Be(1);
        }