Exemple #1
0
        public void Setup()
        {
            //io.CleanTempDirs();
            io  = new IoHelper();
            io2 = new IoHelper();

            status   = new GitStatus(0, 0, 0, 0, false, null, new GitFile[0]);
            branches = new GitBranch[0];

            am = new AutoMock()
                 .RegisterNamespaceOf <IGitInfoService>()
                 .RegisterNamespaceOf <ICmd2>()
                 .RegisterType <IMessageService>()
                 .RegisterSingleInstance(new WorkingFolder(io.WorkingFolder));

            am2 = new AutoMock()
                  .RegisterNamespaceOf <IGitInfoService>()
                  .RegisterNamespaceOf <ICmd2>()
                  .RegisterType <IMessageService>()
                  .RegisterSingleInstance(new WorkingFolder(io2.WorkingFolder));

            git  = new GitHelper(am, io);
            git2 = new GitHelper(am2, io2);
        }
Exemple #2
0
 public GitHelper(AutoMock am, IoHelper io)
 {
     this.am            = am;
     this.workingFolder = io.WorkingFolder;
     this.io            = io;
 }