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); }
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); }
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); }