コード例 #1
0
ファイル: CommonSteps.cs プロジェクト: dinvine/EStroreAPITest
        //should get  response status of OK
        public void ThenShouldGetResponseStatusOf(string p0)
        {
            Dictionary <string, string> headerList = FunctionsShared.GetResponseHeaderDict(_settings.MyRestResponse);

            //Console.WriteLine(p0);
            Assert.AreEqual("application/json; charset", headerList["Content-Type"], "Test fail due to the Conten-Type in header is not application json");
            Assert.AreEqual(p0, _settings.MyRestResponse.StatusCode.ToString(), "Test fail due to Response StatusCode is not equal to OK");
        }