< Summary

Class:Microsoft.Azure.CognitiveServices.Personalizer.Models.DateRange
Assembly:Microsoft.Azure.CognitiveServices.Personalizer
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Personalizer\src\Generated\Models\DateRange.cs
Covered lines:4
Uncovered lines:4
Coverable lines:8
Total lines:52
Line coverage:50% (4 of 8)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor()-100%100%
.ctor(...)-0%100%
get_FromProperty()-100%100%
get_To()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Personalizer\src\Generated\Models\DateRange.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.Personalizer.Models
 12{
 13    using Newtonsoft.Json;
 14    using System.Linq;
 15
 16    public partial class DateRange
 17    {
 18        /// <summary>
 19        /// Initializes a new instance of the DateRange class.
 20        /// </summary>
 221        public DateRange()
 22        {
 23            CustomInit();
 224        }
 25
 26        /// <summary>
 27        /// Initializes a new instance of the DateRange class.
 28        /// </summary>
 029        public DateRange(System.DateTime? fromProperty = default(System.DateTime?), System.DateTime? to = default(System
 30        {
 031            FromProperty = fromProperty;
 032            To = to;
 33            CustomInit();
 034        }
 35
 36        /// <summary>
 37        /// An initialization method that performs custom operations like setting defaults
 38        /// </summary>
 39        partial void CustomInit();
 40
 41        /// <summary>
 42        /// </summary>
 43        [JsonProperty(PropertyName = "from")]
 844        public System.DateTime? FromProperty { get; private set; }
 45
 46        /// <summary>
 47        /// </summary>
 48        [JsonProperty(PropertyName = "to")]
 849        public System.DateTime? To { get; private set; }
 50
 51    }
 52}