Exemple #1
0
        public void AfterClientSendingGetServerInfoRequest()
        {
            var response = client.SendRequest().GetServerInfo(Test.Server1Endpoint);

            server.ClearDatabaseAndCache();
            var info = JsonConvert.DeserializeObject <GameServerInfo>(response.Message);

            info.ShouldBeEquivalentTo(Test.CreateGameServer1Info());
        }
Exemple #2
0
        public void SetUp()
        {
            client = new Client.Client("http://127.0.0.1:8080/");
            server = new StatServer();
            server.ClearDatabaseAndCache();
            var prefix = "http://+:8080/";

            new Thread(() => server.Start(prefix)).Start();
        }