GetSettingsResultInstance.cs (1703B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="GetSettingsResultInstance.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 Microsoft.Management.Configuration; 10 using Windows.Foundation.Collections; 11 12 /// <summary> 13 /// Implements IGetSettingsResult. 14 /// </summary> 15 internal sealed partial class GetSettingsResultInstance : IGetSettingsResult 16 { 17 /// <summary> 18 /// Initializes a new instance of the <see cref="GetSettingsResultInstance"/> class. 19 /// </summary> 20 /// <param name="unit">The configuration unit that the result is for.</param> 21 public GetSettingsResultInstance(ConfigurationUnit unit) 22 { 23 this.Unit = unit; 24 } 25 26 /// <summary> 27 /// Gets the configuration unit that the result is for. 28 /// </summary> 29 public ConfigurationUnit Unit { get; private set; } 30 31 /// <inheritdoc/> 32 public IConfigurationUnitResultInformation ResultInformation 33 { 34 get { return this.InternalResult; } 35 } 36 37 /// <summary> 38 /// Gets the implementation object for ResultInformation. 39 /// </summary> 40 public TestConfigurationUnitResultInformation InternalResult { get; } = new TestConfigurationUnitResultInformation(); 41 42 /// <inheritdoc/> 43 public ValueSet? Settings { get; internal set; } 44 } 45 }