public async Task ApiUserEmailChecking(string expectedEmail)
        {
            const string testBodyInnerText = "ipsum dolorem";

            var comments = await _restClient.GetAsync <List <Comment> >(Routes.Comments);

            foreach (var comment in comments)
            {
                if (comment.Body.Contains(testBodyInnerText))
                {
                    Assert.That(comment.Email, Is.EqualTo(expectedEmail));
                }
            }
        }
示例#2
0
 /// <summary>
 /// Request a list of available Model Years for a given product type (Vehicle).
 /// </summary>
 /// <returns></returns>
 public async Task <OdiDataResponse <OdiModelYearsResult> > ODI_GetAllModelYearsAsync()
 {
     return(await _recallsRestApi.GetAsync <OdiDataResponse <OdiModelYearsResult> >("vehicle"));
 }
示例#3
0
 /// <summary>
 /// The Decode VIN API will decode the VIN and the decoded output will be made available in the format of Key-value pairs. The IDs (VariableID and ValueID) represent the unique ID associated with the Variable/Value. In case of text variables, the ValueID is not applicable. Model Year in the request allows for the decoding to specifically be done in the current, or older (pre-1980), model year ranges. It is recommended to always send in the model year. This API also supports partial VIN decoding (VINs that are less than 17 characters). In this case, the VIN will be decoded partially with the available characters. In case of partial VINs, a "*" could be used to indicate the unavailable characters. The 9th digit is not necessary.
 /// </summary>
 /// <param name="vin"></param>
 /// <returns></returns>
 public async Task <VehicleDataResponse <VinDecodeResult> > DecodeVinAsync(string vin)
 {
     return(await _vehicleDataRestApi.GetAsync <VehicleDataResponse <VinDecodeResult> >("decodevinvalues", vin));
 }