public string serverDespatcher(string data)
        {
            string encodedData = RequestDataManipulator.encodeData(data);

            AppController.Instance.GetServerData(encodedData);
            return(encodedData);
        }
        public void serverReceiver(string encodedData)
        {
            string data = RequestDataManipulator.decodeData(encodedData);
            Dictionary <string, object> deserializedData = JsonConvert.DeserializeObject <Dictionary <string, object> >(data);

            processRequest(deserializedData);
        }
        public void SendServerRequest(object requestData)
        {
            Dictionary <string, object> newRequest = new Dictionary <string, object>();

            newRequest["data1"] = "test";
            newRequest["data2"] = "testing";
            newRequest["data3"] = "tested";


            string data = JsonConvert.SerializeObject(newRequest);

            data = RequestDataManipulator.encodeData(data);
            FakeApplicationServer.Instance.serverReceiver(data);
        }