ApplyGroupSettingsResultInstance.cs (1699B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="ApplyGroupSettingsResultInstance.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 IApplyGroupSettingsResult. 13 /// </summary> 14 internal sealed partial class ApplyGroupSettingsResultInstance : IApplyGroupSettingsResult 15 { 16 /// <summary> 17 /// Initializes a new instance of the <see cref="ApplyGroupSettingsResultInstance"/> class. 18 /// </summary> 19 /// <param name="group">The group for this result.</param> 20 internal ApplyGroupSettingsResultInstance(object? group) 21 { 22 this.Group = group; 23 } 24 25 /// <inheritdoc/> 26 public object? Group { get; private init; } 27 28 /// <inheritdoc/> 29 public bool RebootRequired { get; internal 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 IList<IApplyGroupMemberSettingsResult>? UnitResults { get; internal set; } 44 } 45 }