Skip to content

Commit

Permalink
Add partial to all classes implementing interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMcPMS committed Oct 9, 2024
1 parent aa7200b commit ed300c5
Show file tree
Hide file tree
Showing 25 changed files with 47 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="DiagnosticInformation.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -12,7 +12,7 @@ namespace Microsoft.Management.Configuration.Processor.Helpers
/// <summary>
/// Implements IDiagnosticInformation.
/// </summary>
internal sealed class DiagnosticInformation : IDiagnosticInformation
internal sealed partial class DiagnosticInformation : IDiagnosticInformation
{
/// <inheritdoc/>
public DiagnosticLevel Level { get; internal set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Management.Configuration.Processor.Set
/// <summary>
/// Configuration set processor.
/// </summary>
internal sealed class ConfigurationSetProcessor : IConfigurationSetProcessor
internal sealed partial class ConfigurationSetProcessor : IConfigurationSetProcessor
{
private readonly ConfigurationSet? configurationSet;
private List<ConfigurationUnit> limitUnitList = new List<ConfigurationUnit>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="ApplySettingsResult.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -11,7 +11,7 @@ namespace Microsoft.Management.Configuration.Processor.Unit
/// <summary>
/// Implements IApplySettingsResult.
/// </summary>
internal sealed class ApplySettingsResult : IApplySettingsResult
internal sealed partial class ApplySettingsResult : IApplySettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="ApplySettingsResult"/> class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Management.Configuration.Processor.Unit
/// <summary>
/// Provides access to a specific configuration unit within the runtime.
/// </summary>
internal sealed class ConfigurationUnitProcessor : IConfigurationUnitProcessor
internal sealed partial class ConfigurationUnitProcessor : IConfigurationUnitProcessor
{
private readonly IProcessorEnvironment processorEnvironment;
private readonly ConfigurationUnitAndResource unitResource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="ConfigurationUnitProcessorDetails.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -18,7 +18,7 @@ namespace Microsoft.Management.Configuration.Processor.Unit
/// <summary>
/// Provides information for a specific configuration unit within the runtime.
/// </summary>
internal sealed class ConfigurationUnitProcessorDetails : IConfigurationUnitProcessorDetails
internal sealed partial class ConfigurationUnitProcessorDetails : IConfigurationUnitProcessorDetails
{
private static readonly IEnumerable<string> PublicRepositories = new string[]
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="ConfigurationUnitResultInformation.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -12,7 +12,7 @@ namespace Microsoft.Management.Configuration.Processor.Unit
/// <summary>
/// Implements IConfigurationUnitResultInformation.
/// </summary>
internal sealed class ConfigurationUnitResultInformation : IConfigurationUnitResultInformation
internal sealed partial class ConfigurationUnitResultInformation : IConfigurationUnitResultInformation
{
/// <inheritdoc/>
public string? Description { get; internal set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="ConfigurationUnitSettingDetails.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -13,7 +13,7 @@ namespace Microsoft.Management.Configuration.Processor.Unit
/// <summary>
/// Provides information for a specific configuration unit setting.
/// </summary>
internal sealed class ConfigurationUnitSettingDetails : IConfigurationUnitSettingDetails
internal sealed partial class ConfigurationUnitSettingDetails : IConfigurationUnitSettingDetails
{
/// <summary>
/// Initializes a new instance of the <see cref="ConfigurationUnitSettingDetails"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="GetAllSettingsResult.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -13,7 +13,7 @@ namespace Microsoft.Management.Configuration.Processor.Unit
/// <summary>
/// Implements IGetAllSettingsResult.
/// </summary>
internal class GetAllSettingsResult : IGetAllSettingsResult
internal partial class GetAllSettingsResult : IGetAllSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="GetAllSettingsResult"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="GetSettingsResult.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -12,7 +12,7 @@ namespace Microsoft.Management.Configuration.Processor.Unit
/// <summary>
/// Implements IGetSettingsResult.
/// </summary>
internal sealed class GetSettingsResult : IGetSettingsResult
internal sealed partial class GetSettingsResult : IGetSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="GetSettingsResult"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestSettingsResult.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -11,7 +11,7 @@ namespace Microsoft.Management.Configuration.Processor.Unit
/// <summary>
/// Implements ITestSettingsResult.
/// </summary>
internal sealed class TestSettingsResult : ITestSettingsResult
internal sealed partial class TestSettingsResult : ITestSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="TestSettingsResult"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="ApplyGroupMemberSettingsResultInstance.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -9,7 +9,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// Implements IApplyGroupMemberSettingsResult.
/// </summary>
internal sealed class ApplyGroupMemberSettingsResultInstance : IApplyGroupMemberSettingsResult
internal sealed partial class ApplyGroupMemberSettingsResultInstance : IApplyGroupMemberSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="ApplyGroupMemberSettingsResultInstance"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="ApplyGroupSettingsResultInstance.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -11,7 +11,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// Implements IApplyGroupSettingsResult.
/// </summary>
internal sealed class ApplyGroupSettingsResultInstance : IApplyGroupSettingsResult
internal sealed partial class ApplyGroupSettingsResultInstance : IApplyGroupSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="ApplyGroupSettingsResultInstance"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="ApplySettingsResultInstance.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -11,7 +11,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// Implements IApplySettingsResult.
/// </summary>
internal sealed class ApplySettingsResultInstance : IApplySettingsResult
internal sealed partial class ApplySettingsResultInstance : IApplySettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="ApplySettingsResultInstance"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="GetAllSettingsResultInstance.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -13,7 +13,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// Implements IGetAllSettingsResult.
/// </summary>
internal sealed class GetAllSettingsResultInstance : IGetAllSettingsResult
internal sealed partial class GetAllSettingsResultInstance : IGetAllSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="GetAllSettingsResultInstance"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="GetSettingsResultInstance.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -12,7 +12,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// Implements IGetSettingsResult.
/// </summary>
internal sealed class GetSettingsResultInstance : IGetSettingsResult
internal sealed partial class GetSettingsResultInstance : IGetSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="GetSettingsResultInstance"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestConfigurationProcessorFactory.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -12,7 +12,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// A test implementation of IConfigurationSetProcessorFactory.
/// </summary>
internal class TestConfigurationProcessorFactory : IConfigurationSetProcessorFactory
internal partial class TestConfigurationProcessorFactory : IConfigurationSetProcessorFactory
{
/// <summary>
/// Delegate type for CreateSetProcessor.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestConfigurationSetGroupProcessor.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -18,7 +18,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// A test implementation of IConfigurationGroupProcessor.
/// </summary>
internal class TestConfigurationSetGroupProcessor : TestConfigurationSetProcessor, IConfigurationGroupProcessor
internal partial class TestConfigurationSetGroupProcessor : TestConfigurationSetProcessor, IConfigurationGroupProcessor
{
/// <summary>
/// The event that is waited on before actually processing the async operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// A test implementation of IConfigurationSetProcessor.
/// </summary>
internal class TestConfigurationSetProcessor : IConfigurationSetProcessor
internal partial class TestConfigurationSetProcessor : IConfigurationSetProcessor
{
/// <summary>
/// Initializes a new instance of the <see cref="TestConfigurationSetProcessor"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestConfigurationUnitGroupProcessor.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -18,7 +18,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// A test implementation of IConfigurationGroupProcessor.
/// </summary>
internal class TestConfigurationUnitGroupProcessor : TestConfigurationUnitProcessor, IConfigurationGroupProcessor
internal partial class TestConfigurationUnitGroupProcessor : TestConfigurationUnitProcessor, IConfigurationGroupProcessor
{
/// <summary>
/// The Setting key that will be used to set the TestResult of the unit.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestConfigurationUnitProcessor.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -11,7 +11,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// A test implementation of IConfigurationProcessorFactory.
/// </summary>
internal class TestConfigurationUnitProcessor : IConfigurationUnitProcessor
internal partial class TestConfigurationUnitProcessor : IConfigurationUnitProcessor
{
/// <summary>
/// Initializes a new instance of the <see cref="TestConfigurationUnitProcessor"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestConfigurationUnitProcessorDetails.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -13,7 +13,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// A test implementation of IConfigurationProcessorFactory.
/// </summary>
internal class TestConfigurationUnitProcessorDetails : IConfigurationUnitProcessorDetails
internal partial class TestConfigurationUnitProcessorDetails : IConfigurationUnitProcessorDetails
{
private ConfigurationUnit unit;
private ConfigurationUnitDetailFlags detailFlags;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestConfigurationUnitResultInformation.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -12,7 +12,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// A test implementation of IConfigurationSetProcessorFactory.
/// </summary>
internal class TestConfigurationUnitResultInformation : IConfigurationUnitResultInformation
internal partial class TestConfigurationUnitResultInformation : IConfigurationUnitResultInformation
{
/// <summary>
/// Gets or sets the description.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestGetAllSettingsConfigurationUnitProcessor.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -9,7 +9,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// A test implementation of IConfigurationProcessorFactory.
/// </summary>
internal class TestGetAllSettingsConfigurationUnitProcessor : TestConfigurationUnitProcessor, IGetAllSettingsConfigurationUnitProcessor
internal partial class TestGetAllSettingsConfigurationUnitProcessor : TestConfigurationUnitProcessor, IGetAllSettingsConfigurationUnitProcessor
{
/// <summary>
/// Initializes a new instance of the <see cref="TestGetAllSettingsConfigurationUnitProcessor"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestGroupSettingsResultInstance.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -11,7 +11,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// Implements ITestGroupSettingsResult.
/// </summary>
internal class TestGroupSettingsResultInstance : ITestGroupSettingsResult
internal partial class TestGroupSettingsResultInstance : ITestGroupSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="TestGroupSettingsResultInstance"/> class.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// <copyright file="TestSettingsResultInstance.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
Expand All @@ -11,7 +11,7 @@ namespace Microsoft.Management.Configuration.UnitTests.Helpers
/// <summary>
/// Implements ITestSettingsResult.
/// </summary>
internal sealed class TestSettingsResultInstance : ITestSettingsResult
internal sealed partial class TestSettingsResultInstance : ITestSettingsResult
{
/// <summary>
/// Initializes a new instance of the <see cref="TestSettingsResultInstance"/> class.
Expand Down

0 comments on commit ed300c5

Please sign in to comment.