public async Task <ICollection <User> > HandleWithEventAsync(UserCommandGetAll command)
 {
     return(await Task.FromResult(_mocky.GetAll()));
 }
Пример #2
0
 public async Task <ICollection <User> > HandleWithEventAsync(UserCommandGetAll command)
 {
     throw new System.InvalidOperationException("aaaa");
     _logger.LogInformation($"Recebido as:{DateTime.UtcNow}");
     return(await Task.FromResult(_mocky.GetAll()));
 }