Beispiel #1
0
        public TestEnvironment(string testName, ApiServerType type)
        {
            Local    = new RepositorySetup(testName + "-local");
            Remote   = new RepositorySetup(testName + "-remote");
            Progress = new ProgressForTest();
            switch (type)
            {
            case ApiServerType.Dummy:
                ApiServer = new DummyApiServerForTest(testName);
                break;

            case ApiServerType.Pull:
                ApiServer = new PullHandlerApiServerForTest(Remote.Repository, Progress);
                break;

            case ApiServerType.Push:
                ApiServer = new PushHandlerApiServerForTest(Remote.Repository, Progress);
                break;
            }
            Label         = testName;
            MultiProgress = new MultiProgress(new IProgress[] { new ConsoleProgress {
                                                                    ShowVerbose = true
                                                                }, Progress });
        }
 public TestEnvironment(string testName, ApiServerType type)
 {
     Local = new RepositorySetup(testName + "-local");
     Remote = new RepositorySetup(testName + "-remote");
     Progress = new ProgressForTest();
     switch (type)
     {
         case ApiServerType.Dummy:
             ApiServer = new DummyApiServerForTest(testName);
             break;
         case ApiServerType.Pull:
             ApiServer = new PullHandlerApiServerForTest(Remote.Repository, Progress);
             break;
         case ApiServerType.Push:
             ApiServer = new PushHandlerApiServerForTest(Remote.Repository, Progress);
             break;
     }
     Label = testName;
     MultiProgress = new MultiProgress(new IProgress[] { new ConsoleProgress { ShowVerbose = true }, Progress });
 }