Esempio n. 1
0
 public RepositoryAccessTests()
 {
     repoAccess = new RepositoryAccess(
         new RepositoryAccessDescription(),
         new List <string>()
         );
 }
Esempio n. 2
0
        public AuthorController(LibraryContext libraryContext, IConfiguration configuration)
        {
            string path = configuration.GetValue <string>("PathRegisterLog");

            // Dependency Injection
            repository = new RepositoryAccess(libraryContext);
            log        = new RegisterLog(path);
        }
        public Shareable Push(RepositoryAccess repositoryAccess, string branchName, File file)
        {
            var files = new List <File>();

            files.Add(file);
            contributable.add(files);
            return(this);
        }
Esempio n. 4
0
 public void Init()
 {
     if (RepositoryAccess != null)
     {
         RepositoryAccess.Init();
     }
     if (RegistryAccess != null)
     {
         RegistryAccess.Init();
     }
 }
 public List <File> Pull(RepositoryAccess repositoryAccess, string branchName)
 {
     return(contributable.getFiles());
 }