Beispiel #1
0
 static Program()
 {
     FileSystem        = new FileSystem();
     FileOperator      = new PhysicalFileOperator(FileSystem);
     DataProvider      = new LocalDataProvider(FileOperator);
     Diff              = new DiffOperation(DataProvider, new DiffProxy());
     TreeOperation     = new TreeOperation(DataProvider);
     CommitOperation   = new CommitOperation(DataProvider, TreeOperation);
     TagOperation      = new TagOperation(DataProvider);
     ResetOperation    = new ResetOperation(DataProvider);
     MergeOperation    = new MergeOperation(DataProvider, CommitOperation, TreeOperation, Diff);
     InitOperation     = new DefaultInitOperation(DataProvider);
     BranchOperation   = new BranchOperation(DataProvider);
     CheckoutOperation = new CheckoutOperation(DataProvider, TreeOperation, CommitOperation, BranchOperation);
     AddOperation      = new AddOperation(DataProvider);
     OidConverter      = DataProvider.GetOid;
 }
Beispiel #2
0
 public void Init()
 {
     dataProviderMock = new Mock <IDataProvider>();
     tagOperation     = new TagOperation(dataProviderMock.Object);
 }