public async Task <ICollection <User> > HandleWithEventAsync(UserCommandGetAll command) { return(await Task.FromResult(_mocky.GetAll())); }
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())); }