private Match(Guid id, string homeTeam, string awayTeam) : this(id) { var @event = new MatchDeclared { AwayTeam = awayTeam, HomeTeam = homeTeam }; RaiseDomainEvent(@event); }
private void Apply(MatchDeclared match) { _homeTeam = match.HomeTeam; _awayTeam = match.AwayTeam; }