public void Setup()
        {
            var cmd = new CommandText();

            _gameLobbyRepository = new GameLobbyRepository(ConfigFixture.Config, cmd);

            GameSetting gameSetting = new GameSetting()
            {
                GameLobbyCode = "a1b1",
                SettingType   = "MaxPlayers",
                Value         = "4"
            };
            GameSetting gameSetting1 = new GameSetting()
            {
                GameLobbyCode = "a1b1",
                SettingType   = "NoOfRounds",
                Value         = "10"
            };

            List <GameSetting> gameSettings = new List <GameSetting>();

            gameSettings.Add(gameSetting);
            gameSettings.Add(gameSetting1);

            TestData.GameLobbies.FlorisLobby = new GameLobby()
            {
                Code         = "a1b1",
                LobbyOwnerId = TestData.Users.Floris.Id,
                GameSettings = gameSettings
            };
        }
Ejemplo n.º 2
0
 public UserService(IUserRepository userRepo, ICryptographyService cryptographyService, IGameLobbyRepository gameLobbyRepository)
 {
     _userRepository      = userRepo;
     _cryptographyService = cryptographyService;
     _gameLobbyRepository = gameLobbyRepository;
 }
Ejemplo n.º 3
0
 public GameLobbyService(IGameLobbyRepository gameLobbyRepo)
 {
     _gameLobbyRepository = gameLobbyRepo;
 }
Ejemplo n.º 4
0
 public UserService(IPlayerRepository playerRepository, IGameLobbyRepository lobbyRepository, IDbFactory dbFactory)
 {
     this.playerRepository = playerRepository;
     this.lobbyRepository  = lobbyRepository;
     this.dbFactory        = dbFactory;
 }
Ejemplo n.º 5
0
 public LobbyService(IPlayerRepository players, IGameLobbyRepository lobbies, IDbFactory dbFactory)
 {
     this.players   = players;
     this.lobbies   = lobbies;
     this.dbFactory = dbFactory;
 }