Exemple #1
0
 public Given_a_lobby_is_open_When_timeout_period_has_not_expired()
 {
     lobbys = ObjectMother.GetLobbyManager(new List <Lobby> {
         new Lobby {
             Id = "lobby"
         }
     });
     lobbys.CloseInactive(1);
 }
 public Given_a_lobby_is_open_When_no_new_game_started_for_period()
 {
     lobbys = ObjectMother.GetLobbyManager(new List <Lobby> {
         new Lobby {
             Id = "lobby"
         }
     });
     Task.Delay(1500).Wait();
     lobbys.CloseInactive(1);
 }
        public Given_a_lobby_is_open_When_new_game_started_within_period()
        {
            var lobby = new Lobby {
                Id = "lobby"
            };

            lobbys = ObjectMother.GetLobbyManager(new List <Lobby> {
                lobby
            });
            Task.Delay(1000).Wait();
            lobby.NewGame(null);
            lobbys.CloseInactive(1);
        }