# `Hemdal.Event.Mock`
[🔗](https://github.com/altenwald/hemdal/blob/v1.4.0/lib/hemdal/event/mock.ex#L1)

Consume the events generated by the system and send all of these events
to the process which run `start_link/0`. The even is `Hemdal.Event.t()`.

# `start_link`

```elixir
@spec start_link() :: {:ok, pid()}
```

It is starting a consumer, linked to the caller process, and sending
all of the events to the caller process.

# `stop`

```elixir
@spec stop(GenServer.server()) :: :ok
```

Stop the consumer, while it's linked to the caller process it's a good
idea to stop it.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
