public async Task Handle(CompetitorRemovedFromFixture message) { var fixtureMap = _repository.Get <CompetitorToFixtureMapDto>(message.AggregateId); fixtureMap.FixtureIds.Remove(message.FixtureId); _repository.Upsert(fixtureMap); Console.WriteLine("Handled competitor removed from fixture event"); }
protected void Apply(CompetitorRemovedFromFixture ev) { _fixtures.Remove(ev.FixtureId); }