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 CreateUser() { var guid = Guid.Empty; var user = new User() { Id = Guid.NewGuid(), Email = "*****@*****.**", Password = "******", //DefaultTeamId = guid, Teams = new System.Collections.Generic.List<Team>() { new Team() { Name = "Delta ops", Id = guid }, new Team() { Name = "Blind kids", Id = Guid.NewGuid() } } }; var repo = new UserRepository(); repo.Create(user); }
public void GetUser() { var repo = new UserRepository(); var user = repo.ById(new Guid("61EF6631-7703-4A65-8BAA-9E2AAAB2BDEB")); Console.WriteLine(Newtonsoft.Json.JsonConvert.SerializeObject(user)); Assert.IsNotNull(user); }
public RegistrationService() { _userRepository = new UserRepository(); }
public RankRepository() { _userRepository = new UserRepository(); }