public SystemAccount CreateSystemAdmin(string identifier, Email email) { var systemAccount = new SystemAccount(identifier, email); _systemAccountRepository.MakePersistent(systemAccount); return(systemAccount); }
public SystemAccount Create(Organization organization, string identifier, Email email) { var systemAccount = new SystemAccount(organization, identifier, email); _systemAccountRepository.MakePersistent(systemAccount); return(systemAccount); }
/// <summary> /// Initializes a new instance of the <see cref="SystemAccountRole" /> class. /// </summary> /// <param name="systemAccount">The system account.</param> /// <param name="role">The role.</param> protected internal SystemAccountRole(SystemAccount systemAccount, Role role) { SystemAccount = systemAccount; Role = role; }