winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

GetAllSettingsResultInstance.cs (1767B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="GetAllSettingsResultInstance.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.Management.Configuration.UnitTests.Helpers
      8 {
      9     using System.Collections.Generic;
     10     using Microsoft.Management.Configuration;
     11     using Windows.Foundation.Collections;
     12 
     13     /// <summary>
     14     /// Implements IGetAllSettingsResult.
     15     /// </summary>
     16     internal sealed partial class GetAllSettingsResultInstance : IGetAllSettingsResult
     17     {
     18         /// <summary>
     19         /// Initializes a new instance of the <see cref="GetAllSettingsResultInstance"/> class.
     20         /// </summary>
     21         /// <param name="unit">The configuration unit that the result is for.</param>
     22         public GetAllSettingsResultInstance(ConfigurationUnit unit)
     23         {
     24             this.Unit = unit;
     25         }
     26 
     27         /// <summary>
     28         /// Gets the configuration unit that the result is for.
     29         /// </summary>
     30         public ConfigurationUnit Unit { get; private set; }
     31 
     32         /// <inheritdoc/>
     33         public IConfigurationUnitResultInformation ResultInformation
     34         {
     35             get { return this.InternalResult; }
     36         }
     37 
     38         /// <summary>
     39         /// Gets the implementation object for ResultInformation.
     40         /// </summary>
     41         public TestConfigurationUnitResultInformation InternalResult { get; } = new TestConfigurationUnitResultInformation();
     42 
     43         /// <inheritdoc/>
     44         public IList<ValueSet>? Settings { get; internal set; }
     45     }
     46 }