コード例 #1
0
 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)));
 }
コード例 #2
0
 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;
 }