Пример #1
0
        /// <summary>
        /// Creates Service to work with users.
        /// </summary>
        /// <returns>Instance that implements IUserService.</returns>
        public IUserService CreateUserService()
        {
            var sender      = new HttpRequestSender(this.accessToken);
            var userService = new UserService(sender);

            return(userService);
        }
Пример #2
0
        /// <summary>
        /// Creates Service to work with commits.
        /// </summary>
        /// <returns>Instance that implements ICommitService.</returns>
        public ICommitService CreateCommitServcie()
        {
            var sender        = new HttpRequestSender(this.accessToken);
            var commitService = new CommitService(sender);

            return(commitService);
        }
Пример #3
0
        /// <summary>
        /// Creates Service to work with repositories.
        /// </summary>
        /// <returns>Instance that implements IRepositoryService.</returns>
        public IRepositoryService CreateRepositoryService()
        {
            var sender            = new HttpRequestSender(this.accessToken);
            var repositoryService = new RepositoryService(sender);

            return(repositoryService);
        }
Пример #4
0
        /// <summary>
        /// Creates Service to work with branches.
        /// </summary>
        /// <returns>Instance that implements IBranchService.</returns>
        public IBranchService CreateBranchService()
        {
            var sender        = new HttpRequestSender(this.accessToken);
            var branchService = new BranchService(sender);

            return(branchService);
        }