public void FindNotExistingRepository() { // Arrange var repoService = new RepoService(new MockRepoRepository()); // Act var result = repoService.Find(Guid.NewGuid()); // Assert Assert.IsNull(result); }
public void CreateAndFindRepository() { // Arrange var repoName = "TestRepo"; var repoService = new RepoService(new MockRepoRepository()); // Act var createdRepoId = repoService.Create(repoName); var actualRepo = repoService.Find(createdRepoId); // Assert Assert.AreEqual(repoName, actualRepo.Name); }