public void TestMercuryRepo()
        {
            //Arrange
            factory = new MercuryFactory();
            ContentManager mercuryContentManager = new ContentManager(factory);

            //Act
            mercuryContentManager.InitRepo("SOA3", project);
            var repo = mercuryContentManager.GetRepo();

            mercuryContentManager.AddCommit(repo.Branches.First(), "init commit", "this is the first commit");


            //Assert
            Assert.IsTrue(repo is MercuryRepo);
            Assert.IsTrue(repo.Branches.Count == 1);
        }
        public void TestGitRepo()
        {
            //Arrange
            factory = new GitFactory();
            ContentManager gitContentManager = new ContentManager(factory);

            //Act
            gitContentManager.InitRepo("SOA3", project);
            var repo = gitContentManager.GetRepo();

            gitContentManager.AddCommit(repo.Branches.First(), "init commit", "this is the first commit");


            //Assert
            Assert.IsTrue(repo is GitRepo);
            //Check if we added the initial branch
            Assert.IsTrue(repo.Branches.Count == 1);
            Assert.IsNotNull(repo.FindCommit("init commit"));
        }
 public ContentManager(IContentManagerFactory factory)
 {
     this.factory = factory;
 }