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