public CustodianAccountsCommand(ICustodiansCommand custodiansCommand, ICustodiansQuery custodiansQuery, ILoginCredentialsCommand loginCredentialsCommand, ILoginCredentialsQuery loginCredentialsQuery, ICustodianAffiliationsCommand custodianAffiliationsCommand)
 {
     _custodiansCommand            = custodiansCommand;
     _custodiansQuery              = custodiansQuery;
     _loginCredentialsCommand      = loginCredentialsCommand;
     _loginCredentialsQuery        = loginCredentialsQuery;
     _custodianAffiliationsCommand = custodianAffiliationsCommand;
 }
        public static Custodian CreateTestCustodian(this ICustodiansCommand custodianAccountsCommand, string emailAddress, string firstName, string lastName)
        {
            var custodian = new Custodian
            {
                IsEnabled    = true,
                IsActivated  = true,
                EmailAddress = new EmailAddress {
                    Address = emailAddress, IsVerified = true
                },
                FirstName = firstName,
                LastName  = lastName,
            };

            custodianAccountsCommand.CreateCustodian(custodian);
            return(custodian);
        }
 public static Custodian CreateTestCustodian(this ICustodiansCommand custodianAccountsCommand, string emailAddress)
 {
     return(custodianAccountsCommand.CreateTestCustodian(emailAddress, string.Format(FirstNameFormat, 0), string.Format(LastNameFormat, 0)));
 }
 public static Custodian CreateTestCustodian(this ICustodiansCommand custodianAccountsCommand, int index)
 {
     return(custodianAccountsCommand.CreateTestCustodian(string.Format(EmailAddressFormat, index), string.Format(FirstNameFormat, index), string.Format(LastNameFormat, index)));
 }