Пример #1
0
        public void ThenTheReturnStatusCodeIs(string statusCode)
        {
            switch (statusCode)
            {
            case "OK":
                RestHelper.AssertStatusCode(apiResponse.Response, HttpStatusCode.OK);
                break;

            case "Not Found":
                RestHelper.AssertStatusCode(apiResponse.Response, HttpStatusCode.NotFound);
                break;

            default:
                throw new System.ArgumentException("The Status Code entered is invalid");
            }
        }