using Xunit; namespace raven_integration { public class ServerStateTest { // ApiFixture fixture; // public ServerStateTest(ApiFixture _fixture) // { // this.fixture = _fixture; // } /// /// Test get state /// [Fact] public async void ServerStateShouldReturnOk() { ApiResponse a = await Util.GetAsync("ServerState"); Util.ValidateDataReturnResponseOk(a); } //can't test this because it fucks up other tests and the fixture // /// // /// Test set state // /// // [Fact] // public async void ServerStateShouldSet() // { // /*{ // "serverState": "open" // } */ // //open // dynamic dd = new JObject(); // dd.serverState = "open"; // ApiResponse aa = await Util.PostAsync("ServerState", fixture.ManagerAuthToken, dd.ToString()); // Util.ValidateHTTPStatusCode(aa, 204); // //close // dynamic d = new JObject(); // d.serverState = "closed"; // ApiResponse a = await Util.PostAsync("ServerState", fixture.ManagerAuthToken, d.ToString()); // Util.ValidateHTTPStatusCode(a, 204); // //open // dynamic ddd = new JObject(); // dd.serverState = "open"; // ApiResponse aaa = await Util.PostAsync("ServerState", fixture.ManagerAuthToken, ddd.ToString()); // Util.ValidateHTTPStatusCode(aaa, 204); // } //================================================== }//eoc }//eons