Beispiel #1
0
 public PlayerService(ILogger logger, ILogEventBuilder eventBuilder)
 {
     _logger = logger;
     _eventBuilder = eventBuilder;
     _userTeamRepository = new UserTeamRepository();
     _userRepository = new UserRepository();
     _userRankRepository = new UserRankRepository();
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
 public RegistrationService()
 {
     _userRepository = new UserRepository();
 }
Beispiel #6
0
 public RankRepository()
 {
     _userRepository = new UserRepository();
 }