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");
        }
Ejemplo n.º 2
0
 protected void Apply(CompetitorRemovedFromFixture ev)
 {
     _fixtures.Remove(ev.FixtureId);
 }