Beispiel #1
0
    public void testGet()
    {
        JSONReaderFile jsonRead = new JSONReaderFile();
        GetRequest     reqGet   = new GetRequest();

        reqGet.getRequest(jsonRead.jsonReader("Data.json", "Request_Get"));
        PostRequest reqPost = new PostRequest();

        reqPost.postRequest(jsonRead.jsonReader("Data.json", "Request_Post"), " { email : " + jsonRead.jsonReader("Data.json", "email") + ", password :"******"Data.json", "password") + "}");
        DeleteRequest reqDelete = new DeleteRequest();

        reqDelete.deleteRequest(jsonRead.jsonReader("Data.json", "Request_Delete"));
    }
    public void testGet()
    {
        JSONReaderFile jsonRead = new JSONReaderFile();
        GetRequest     reqGet   = new GetRequest();

        reqGet.getRequest(jsonRead.jsonReader("Data.json", "Request_Get"));
        PostRequest reqPost = new PostRequest();

        reqPost.postRequest(jsonRead.jsonReader("Data.json", "Request_Post"), new { email = jsonRead.jsonReader("Data.json", "email"), password = jsonRead.jsonReader("Data.json", "password") });
        DeleteRequest reqDelete = new DeleteRequest();

        reqDelete.deleteRequest(jsonRead.jsonReader("Data.json", "Request_Delete"));
        PutRequest reqPut = new PutRequest();

        reqPut.putRequest(jsonRead.jsonReader("Data.json", "Request_Put"), new { name = (jsonRead.jsonReader("Data.json", "name")), job = jsonRead.jsonReader("Data.json", "job") });
    }