Exemplo n.º 1
0
        public void Getcodegen(IAPIDriver driver)
        {
            var endPoint = driver.EndPoint <GetHealthcheckEndpoint>();

            driver.Action.Get("/CodeGenerator");
            endPoint.Response.Status.Expect.Equals(HttpStatusCode.OK);
            endPoint.Response.Status.Expect.GreaterThan(0);
        }
Exemplo n.º 2
0
        public void Get_Weather(IAPIDriver driver)
        {
            var endPoint = driver.EndPoint <GetHealthcheckEndpoint>();

            driver.Action.Get("/WeatherForecast");
            endPoint.Response.Status.Expect.Equals(HttpStatusCode.OK);
            endPoint.Response.Status.Expect.GreaterThan(0);
        }
Exemplo n.º 3
0
        public void GetHealthcheck(IAPIDriver driver)
        {
            var endPoint = driver.EndPoint <GetHealthcheckEndpoint>();

            driver.Action.Get("/healthcheck");
            endPoint.Response.Status.Expect.Equals(HttpStatusCode.OK);
            driver.Action.Get("/api/healthcheck");
            endPoint.Response.Status.Expect.Equals(HttpStatusCode.OK);
            driver.Action.Get("/api/DLiaB");
            Console.WriteLine(endPoint.Response);
            endPoint.Response.Status.Expect.Equals(HttpStatusCode.OK);
        }