Ejemplo n.º 1
0
 public CommunitiesController(ICommunitiesQuery communitiesQuery, ICustodianAccountsCommand custodianAccountsCommand, ICustodiansQuery custodiansQuery, IVerticalsCommand verticalsCommand, ILocationQuery locationQuery)
 {
     _communitiesQuery         = communitiesQuery;
     _custodianAccountsCommand = custodianAccountsCommand;
     _custodiansQuery          = custodiansQuery;
     _verticalsCommand         = verticalsCommand;
     _locationQuery            = locationQuery;
 }
Ejemplo n.º 2
0
        public static Custodian CreateTestCustodian(this ICustodianAccountsCommand custodianAccountsCommand, string loginId, string firstName, string lastName, Guid affiliateId)
        {
            var custodian = new Custodian
            {
                EmailAddress = new EmailAddress {
                    Address = string.Format(EmailAddressFormat, loginId)
                },
                FirstName = firstName,
                LastName  = lastName,
            };

            custodianAccountsCommand.CreateCustodian(custodian, new LoginCredentials {
                LoginId = loginId, PasswordHash = LoginCredentials.HashToString(DefaultPassword)
            }, affiliateId);
            return(custodian);
        }
Ejemplo n.º 3
0
 public static Custodian CreateTestCustodian(this ICustodianAccountsCommand custodianAccountsCommand, string loginId, Guid affiliateId)
 {
     return(custodianAccountsCommand.CreateTestCustodian(loginId, string.Format(FirstNameFormat, 0), string.Format(LastNameFormat, 0), affiliateId));
 }
Ejemplo n.º 4
0
 public static Custodian CreateTestCustodian(this ICustodianAccountsCommand custodianAccountsCommand, int index, Guid affiliateId)
 {
     return(custodianAccountsCommand.CreateTestCustodian(string.Format(UserIdFormat, index), string.Format(FirstNameFormat, index), string.Format(LastNameFormat, index), affiliateId));
 }