Beispiel #1
0
        protected async Task CheckIfItemExist(ICelebrityEvent @event)
        {
            var model = await Context.LoadAsync <EventStoreModel>(@event.AggregatedId, new DynamoDBOperationConfig { OverrideTableName = Options.StoreName });

            model.Should().NotBeNull();
            model.Events.Should().Contain(JsonConvert.SerializeObject(@event));
        }
Beispiel #2
0
 protected virtual void Append(ICelebrityEvent @event) => PendingEvents.Enqueue(@event);