Exemplo n.º 1
0
        public async Task CreateSquadAsync(
            CreateSquadCommand createSquadCommand,
            CancellationToken cancellationToken)
        {
            var squad = SquadFactory.Create(createSquadCommand.SquadOwnerId, createSquadCommand.Name);
            await _squadRepository.CreateAsync(squad, cancellationToken);

            await _squadRepository.SaveAsync(cancellationToken);
        }