public PlayerService(ILogger logger, ILogEventBuilder eventBuilder) { _logger = logger; _eventBuilder = eventBuilder; _userTeamRepository = new UserTeamRepository(); _userRepository = new UserRepository(); _userRankRepository = new UserRankRepository(); }
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 CreateUserTeam() { var userTeam = new UserTeam() { UserId = new Guid("61EF6631-7703-4A65-8BAA-9E2AAAB2BDEB"), TeamId = new Guid("C9BB2272-12AF-43E5-8471-B4A97C6DCC00") }; var repo = new UserTeamRepository(); repo.Create(userTeam); }