public void UnMarkAsFavoriteService_ValidRepoInRepository()
        {
            // Arrange
            var mockGitHubRepoRepository = new Mock<IGitHubRepoRepository>();
            var mockUnitOfWork = new Mock<IUnitOfWork>();

            // create new repo fake
            var repo = MockHelper.GetRepoByName("owner1", "repoNameFake1");

            var svc = new GitHubRepoService(mockGitHubRepoRepository.Object, mockUnitOfWork.Object);

            // Act
            svc.UnMarkAsFavorite(repo);

            // Assert
            mockUnitOfWork.Verify(m => m.Commit(), Times.Once);
        }
        public void UnMarkAsFavoriteService_InvalidRepoInRepository()
        {
            // Arrange
            var mockGitHubRepoRepository = new Mock<IGitHubRepoRepository>();
            var mockUnitOfWork = new Mock<IUnitOfWork>();

            // create invalid repo
            GitHubRepo repo = null;

            var svc = new GitHubRepoService(mockGitHubRepoRepository.Object, mockUnitOfWork.Object);

            // Act
            svc.UnMarkAsFavorite(repo);

            // Assert
            mockUnitOfWork.Verify(m => m.Commit(), Times.Never);
        }