public static IMultiFactorInfo Create(MultiFactorInfo multiFactorInfo) { return(multiFactorInfo switch { PhoneMultiFactorInfo phoneMultiFactorInfo => new PhoneMultiFactorInfoWrapper(phoneMultiFactorInfo), _ => new MultiFactorInfoWrapper(multiFactorInfo) });
public MultiFactorInfoWrapper(MultiFactorInfo multiFactorInfo) { _multiFactorInfo = multiFactorInfo ?? throw new ArgumentNullException(nameof(multiFactorInfo)); }