DeleteRepository() public method

Method to delete the selected repository.
public DeleteRepository ( int repositoryId ) : Microsoft.Research.DataOnboarding.DomainModel.Repository
repositoryId int Repository id.
return Microsoft.Research.DataOnboarding.DomainModel.Repository
        public void Delete_Repository_Test()
        {
            IRepositoryDetails repository = new RepositoryDetails(testDBContext);

            Repository delRep = repository.DeleteRepository(1);

            Assert.AreEqual(delRep.Name, "Repository1");
            Assert.AreEqual(delRep.RepositoryId, 1);

            testDBContext.Commit();
            var repList = repository.RetrieveRepositories();

            Assert.AreEqual(repList.Count(), 1);
        }
 public void Throw_Exception_On_Delete_Null_Repository_Test()
 {
     IRepositoryDetails repository = new RepositoryDetails(testDBContext);
     repository.DeleteRepository(8);
 }