private async Task Handle(ArticleAvailableEvent @event) { var articleObject = await Repository.Get(@event.ArticleId); articleObject.Property("Available").Value = true; await Repository.Update(@event.ArticleId, articleObject); }
private void Apply(ArticleAvailableEvent @event) { _available = true; }