public void RepoRegistryMountsOnlyRegisteredRepos() { Mock <IRepoMounter> repoMounterMock = new Mock <IRepoMounter>(MockBehavior.Strict); repoMounterMock.Setup(mp => mp.MountRepository(ExpectedActiveRepoPath, ExpectedActiveUserId)).Returns(true); this.CreateTestRepos(ServiceDataLocation); RepoRegistry repoRegistry = new RepoRegistry( this.tracer, this.fileSystem, ServiceDataLocation, repoMounterMock.Object); repoRegistry.AutoMountRepos(ExpectedActiveUserId.ToString(), ExpectedSessionId); repoMounterMock.VerifyAll(); }