Beispiel #1
0
 public static void ResetData()
 {
     using (var client = new TestStart().Client)
     {
         client.DefaultRequestHeaders.Add("Accept", "application/json");
         var response = client.DeleteAsync("/api/scenario");
     }
 }
Beispiel #2
0
        public void When_ResetData_IsSuccessful()
        {
            using (var client = new TestStart().Client)
            {
                client.DefaultRequestHeaders.Add("Accept", "application/json");

                var response = client.DeleteAsync("/api/scenario");

                Assert.AreEqual(HttpStatusCode.OK, response.Result.StatusCode);
            }
        }