コード例 #1
0
        public void Setup()
        {
            // backup the user setting, will restore it at the end of the test run
            _userSetting = AppSettings.RecentRepositoriesHistorySize;
            AppSettings.RecentRepositoriesHistorySize = 30;

            _repositoryStorage         = Substitute.For <IRepositoryStorage>();
            _repositoryHistoryMigrator = Substitute.For <IRepositoryHistoryMigrator>();
            _manager = new LocalRepositoryManager(_repositoryStorage, _repositoryHistoryMigrator);
        }
コード例 #2
0
 public LocalRepositoryManager(IRepositoryStorage repositoryStorage, IRepositoryHistoryMigrator repositoryHistoryMigrator)
 {
     _repositoryStorage         = repositoryStorage;
     _repositoryHistoryMigrator = repositoryHistoryMigrator;
 }