public static AccountService InstantiateForDatabase(RequestContext c) { return(new AccountService(c, UserAccountRepository.InstantiateForDatabase(c), AuthTokenRepository.InstantiateForDatabase(c), ApiKeyRepository.InstantiateForDatabase(c), StoreUserRelationshipRepository.InstantiateForDatabase(c), StoreRepository.InstantiateForDatabase(c))); }
public AccountService(RequestContext c, UserAccountRepository userAccounts, AuthTokenRepository authTokens, ApiKeyRepository apiKeys, StoreUserRelationshipRepository adminUsersXStores, StoreRepository stores) { context = c; AdminUsers = userAccounts; AuthTokens = authTokens; ApiKeys = apiKeys; AdminUsersXStores = adminUsersXStores; Stores = stores; }