winget-cli

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

TestGroupSettingsResultInstance.cs (1688B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="TestGroupSettingsResultInstance.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 
     11     /// <summary>
     12     /// Implements ITestGroupSettingsResult.
     13     /// </summary>
     14     internal partial class TestGroupSettingsResultInstance : ITestGroupSettingsResult
     15     {
     16         /// <summary>
     17         /// Initializes a new instance of the <see cref="TestGroupSettingsResultInstance"/> class.
     18         /// </summary>
     19         /// <param name="group">The group for this result.</param>
     20         internal TestGroupSettingsResultInstance(object? group)
     21         {
     22             this.Group = group;
     23         }
     24 
     25         /// <inheritdoc/>
     26         public object? Group { get; private init; }
     27 
     28         /// <inheritdoc/>
     29         public IConfigurationUnitResultInformation ResultInformation
     30         {
     31             get { return this.InternalResult; }
     32         }
     33 
     34         /// <summary>
     35         /// Gets the implementation object for ResultInformation.
     36         /// </summary>
     37         public TestConfigurationUnitResultInformation InternalResult { get; } = new TestConfigurationUnitResultInformation();
     38 
     39         /// <inheritdoc/>
     40         public ConfigurationTestResult TestResult { get; internal set; }
     41 
     42         /// <inheritdoc/>
     43         public IList<ITestSettingsResult>? UnitResults { get; internal set; }
     44     }
     45 }