Esempio n. 1
0
        public void Create(Guid id, User projectOwner)
        {
            var payload     = new { ProjectOwnerId = projectOwner.Id };
            var jsonPayload = JsonConvert.SerializeObject(payload);

            var teamCreatedEvent = new TeamCreatedEvent(
                id,
                1,
                jsonPayload);

            Apply(teamCreatedEvent);
        }
Esempio n. 2
0
 private void Apply(TeamCreatedEvent teamCreatedEvent)
 {
     Name            = teamCreatedEvent.Name;
     OrganizationKey = teamCreatedEvent.OrganizationKey;
 }