Пример #1
0
 public static ValueTask EnsureUserRecordExists(this IServiceScope source, UserRecord record)
 {
     return(source.GetServiceOfType <IUserStore, FakeUserStore>().Create(record));
 }
Пример #2
0
 public static ValueTask <UserRecord> GetRecordByEmail(this IServiceScope source, string email)
 {
     return(source.GetServiceOfType <IUserStore, FakeUserStore>().GetByEmail(email));
 }