public static ValueTask EnsureUserRecordExists(this IServiceScope source, UserRecord record) { return(source.GetServiceOfType <IUserStore, FakeUserStore>().Create(record)); }
public static ValueTask <UserRecord> GetRecordByEmail(this IServiceScope source, string email) { return(source.GetServiceOfType <IUserStore, FakeUserStore>().GetByEmail(email)); }