/// <summary> /// Constructor. /// </summary> public UserService( DatabaseContext dbContext, IIdentityProvider identityProvider, IGitHubUserClient gitHubUserClient, IGitHubOrganizationClient gitHubOrgClient, IGitHubTeamClient gitHubTeamClient, IEmailProvider emailProvider, ActivationToken activationToken) { _dbContext = dbContext; _identityProvider = identityProvider; _gitHubUserClient = gitHubUserClient; _gitHubOrgClient = gitHubOrgClient; _gitHubTeamClient = gitHubTeamClient; _emailProvider = emailProvider; _activationToken = activationToken; }
/// <summary> /// Returns a user service. /// </summary> private IUserService GetUserService( DatabaseContext dbContext = null, IIdentityProvider identityProvider = null, IGitHubUserClient gitHubUserClient = null, IGitHubOrganizationClient gitHubOrgClient = null, IGitHubTeamClient gitHubTeamClient = null, IEmailProvider emailProvider = null, ActivationToken activationToken = null) { return new UserService ( dbContext, identityProvider, gitHubUserClient, gitHubOrgClient, gitHubTeamClient, emailProvider, activationToken ); }