Exemplo n.º 1
0
        public void Handle(MatchCompleted e)
        {
            var match = Tournaments
                        .SelectMany(x => x.DivisionSchedules)
                        .SelectMany(x => x.Games)
                        .SingleOrDefault(x => x.Id == e.Id);

            match.IsComplete = true;
        }
Exemplo n.º 2
0
 public void Apply(MatchCompleted e)
 {
     IsComplete = true;
 }
Exemplo n.º 3
0
        public void Handle(MatchCompleted e)
        {
            var match = Matches[e.Id];

            match.IsComplete = true;
        }