## providers.testing.InMemEventStore

<span id="hexkit.providers.testing.InMemEventStore"></span>


A manager for multiple topics, whereby each topic is model as queue not as log.


Usage

``` python
providers.testing.InMemEventStore()
```


It should be seen as a utility of the [InMemEventPublisher](providers.testing.InMemEventPublisher.md#hexkit.providers.testing.InMemEventPublisher) and should only together with that class.


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Create an in memory topic registry based on collections' deque. |
| [get()](#get) | Get the next element in the queue corresponding to the specified topic. |
| [post()](#post) | Queue a new event to a topic. |

<span id="__init__"></span>

<span id="hexkit.providers.testing.InMemEventStore.__init__"></span>


#### \_\_init\_\_()


Create an in memory topic registry based on collections' deque.


Usage

``` python
__init__()
```


<span id="hexkit.providers.testing.InMemEventStore.get"></span>

------------------------------------------------------------------------


#### get()


Get the next element in the queue corresponding to the specified topic.


Usage

``` python
get(topic)
```


<span id="hexkit.providers.testing.InMemEventStore.post"></span>

------------------------------------------------------------------------


#### post()


Queue a new event to a topic.


Usage

``` python
post(topic, event)
```
