Beispiel #1
0
        public void DataSetGetCheatTest()
        {
            // TODO uncomment below to test the method and replace null with proper value

            string datasetId = "fnxIQtYq1Qg";
            var    response  = instance.DataSetGetCheat(datasetId);

            Assert.IsInstanceOf <Answer>(response, "response is Answer");
        }
        public AnswerResponse VehiclePostAnswerTest()
        {
            dsInstance      = new DataSetApi();
            vehicleInstance = new VehiclesApi();
            dealerInstance  = new DealersApi();

            Answer answer = new Answer();

            // Get DataSet ID
            string            datasetId         = "";
            DatasetIdResponse responseDataSetId = dsInstance.DataSetGetDataSetId();

            datasetId = responseDataSetId.DatasetId;

            // Get the Dealers and Vehicles for the given DataSetID

            // Get VehicleIds
            VehicleIdsResponse responseVehicleIds = new VehicleIdsResponse();

            responseVehicleIds = vehicleInstance.VehiclesGetIds(datasetId);



            /////////////////////////  CHEAT /////////////////////////////////////////////////
            answer = dsInstance.DataSetGetCheat(datasetId);   //// CHEAT answer
            /////////////////////////////////////////////////////////////////////////////////


            // Post the response answer
            //var response = dsInstance.DataSetPostAnswer(datasetId, answer);
            AnswerResponse ansResponse = dsInstance.DataSetPostAnswer(datasetId, answer);

            Assert.IsInstanceOf <AnswerResponse>(ansResponse, "response is AnswerResponse");

            return(ansResponse);
        }