< Summary

Class:Microsoft.Azure.CognitiveServices.Vision.Face.Models.VerifyFaceToFaceRequest
Assembly:Microsoft.Azure.CognitiveServices.Vision.Face
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\VerifyFaceToFaceRequest.cs
Covered lines:4
Uncovered lines:5
Coverable lines:9
Total lines:71
Line coverage:44.4% (4 of 9)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_FaceId1()-100%100%
get_FaceId2()-100%100%
Validate()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Vision.Face\src\Generated\Models\VerifyFaceToFaceRequest.cs

#LineLine coverage
 1// <auto-generated>
 2// Copyright (c) Microsoft Corporation. All rights reserved.
 3// Licensed under the MIT License. See License.txt in the project root for
 4// license information.
 5//
 6// Code generated by Microsoft (R) AutoRest Code Generator.
 7// Changes may cause incorrect behavior and will be lost if the code is
 8// regenerated.
 9// </auto-generated>
 10
 11namespace Microsoft.Azure.CognitiveServices.Vision.Face.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    /// <summary>
 17    /// Request body for face to face verification.
 18    /// </summary>
 19    public partial class VerifyFaceToFaceRequest
 20    {
 21        /// <summary>
 22        /// Initializes a new instance of the VerifyFaceToFaceRequest class.
 23        /// </summary>
 424        public VerifyFaceToFaceRequest()
 25        {
 26            CustomInit();
 427        }
 28
 29        /// <summary>
 30        /// Initializes a new instance of the VerifyFaceToFaceRequest class.
 31        /// </summary>
 32        /// <param name="faceId1">FaceId of the first face, comes from Face -
 33        /// Detect</param>
 34        /// <param name="faceId2">FaceId of the second face, comes from Face -
 35        /// Detect</param>
 036        public VerifyFaceToFaceRequest(System.Guid faceId1, System.Guid faceId2)
 37        {
 038            FaceId1 = faceId1;
 039            FaceId2 = faceId2;
 40            CustomInit();
 041        }
 42
 43        /// <summary>
 44        /// An initialization method that performs custom operations like setting defaults
 45        /// </summary>
 46        partial void CustomInit();
 47
 48        /// <summary>
 49        /// Gets or sets faceId of the first face, comes from Face - Detect
 50        /// </summary>
 51        [JsonProperty(PropertyName = "faceId1")]
 852        public System.Guid FaceId1 { get; set; }
 53
 54        /// <summary>
 55        /// Gets or sets faceId of the second face, comes from Face - Detect
 56        /// </summary>
 57        [JsonProperty(PropertyName = "faceId2")]
 858        public System.Guid FaceId2 { get; set; }
 59
 60        /// <summary>
 61        /// Validate the object.
 62        /// </summary>
 63        /// <exception cref="Rest.ValidationException">
 64        /// Thrown if validation fails
 65        /// </exception>
 66        public virtual void Validate()
 67        {
 68            //Nothing to validate
 069        }
 70    }
 71}