public CommunitiesController(ICommunitiesQuery communitiesQuery, ICustodianAccountsCommand custodianAccountsCommand, ICustodiansQuery custodiansQuery, IVerticalsCommand verticalsCommand, ILocationQuery locationQuery) { _communitiesQuery = communitiesQuery; _custodianAccountsCommand = custodianAccountsCommand; _custodiansQuery = custodiansQuery; _verticalsCommand = verticalsCommand; _locationQuery = locationQuery; }
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); }
public static Custodian CreateTestCustodian(this ICustodianAccountsCommand custodianAccountsCommand, string loginId, Guid affiliateId) { return(custodianAccountsCommand.CreateTestCustodian(loginId, string.Format(FirstNameFormat, 0), string.Format(LastNameFormat, 0), affiliateId)); }
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)); }