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); }
public LocalRepositoryManager(IRepositoryStorage repositoryStorage, IRepositoryHistoryMigrator repositoryHistoryMigrator) { _repositoryStorage = repositoryStorage; _repositoryHistoryMigrator = repositoryHistoryMigrator; }