public static IMemberRepository GetMemberRepository() => new MemberDAL(UtilityFactory.GetConfig().ConnectionString);
public static IProjectRepository GetProjectRepository() => new ProjectDAL(UtilityFactory.GetConfig().ConnectionString);
public static IBusinessLogic GetGitHubListTeamMembersLogic(Type classContext, ICommandContext context, string gitHubTeamSlug) => new GitHubListTeamMembersLogic(Log.Logger.ForContext(classContext), context, new GitHubClient(UtilityFactory.GetConfig().GitHubAuthToken, UtilityFactory.GetConfig().GitHubOrganizationName), gitHubTeamSlug);
public static IBusinessLogic GetGitHubListOrgLogic(Type classContext, ICommandContext context) => new GitHubListOrgLogic(Log.Logger.ForContext(classContext), context, new GitHubClient(UtilityFactory.GetConfig().GitHubAuthToken, UtilityFactory.GetConfig().GitHubOrganizationName));
public static IBusinessLogic GetGitHubJoinOrgLogic(Type classContext, ICommandContext context, string gitHubEmail) => new GitHubJoinOrgLogic(Log.Logger.ForContext(classContext), context, UtilityFactory.GetConfig().GitHubAuthToken, UtilityFactory.GetConfig().GitHubOrganizationName, gitHubEmail);
public static IBusinessLogic GetHelpLogic(Type classContext, ICommandContext context) => new HelpLogic(Log.Logger.ForContext(classContext), context, ModuleDetailRepository.Modules, UtilityFactory.GetConfig().Prefix);