Exemplo n.º 1
0
        private static Season CreateSeasonWithTeams(params Guid[] identities)
        {
            var season   = new Season();
            var seasonId = Guid.NewGuid();

            season.Apply(new SeasonCreated(seasonId, "DummyName", DateTimeOffset.UtcNow));
            foreach (var guidIdentity in identities)
            {
                season.Apply(new TeamAddedToSeason(seasonId, guidIdentity));
            }

            return(season);
        }