public TeamService(ILogger logger, ILogEventBuilder eventBuilder) { _teamRepository = new TeamRepository(); _rankRepository = new RankRepository(); _userTeamRepository = new UserTeamRepository(); _userRepository = new UserRepository(); _publisher = new RabbitMqPublisher(); _userRankRepository = new UserRankRepository(); _logger = logger; _eventBuilder = eventBuilder; }
public void CreateTeam() { var team = new Team() { Name = "Delta Ops", Id = Guid.Empty }; var team2 = new Team() { Name = "Deaf Team", Id = Guid.NewGuid() }; var repo = new TeamRepository(); repo.Create(new List<Team>() { team, team2}); }