protected SecurityManagerPrincipal CreateSecurityManagerPrincipal(Tenant tenant, User user, Substitution substitution) { ArgumentUtility.CheckNotNull("tenant", tenant); ArgumentUtility.CheckNotNull("user", user); return(new SecurityManagerPrincipal(tenant.GetHandle(), user.GetHandle(), substitution.GetSafeHandle())); }