public GitHubHostProvider(ICommandContext context, IGitHubRestApi gitHubApi, IGitHubAuthentication gitHubAuth) : base(context) { EnsureArgument.NotNull(gitHubApi, nameof(gitHubApi)); EnsureArgument.NotNull(gitHubAuth, nameof(gitHubAuth)); _gitHubApi = gitHubApi; _gitHubAuth = gitHubAuth; }
public IssuesController(IOptions <AppSettings> appSettings, IGitHubAuthentication gitHubAuthentication, IWorkItemsRepo workItemsRepo) { _appSettings = appSettings; _gitHubAuthentication = gitHubAuthentication; _workItemsRepo = workItemsRepo; #if DEBUG _ignoreAuthCheck = true; #endif }