Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unify namespaces and class names under DemoConsole #13433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

ricardobossan
Copy link
Member

@ricardobossan ricardobossan commented May 8, 2025

Related #13388

Proposed changes

  • Unifies DesignSurfaceExt and DemoConsole namespaces under the latter.
  • Renames class names where appropriate to reflect the shared project identity, in preparation for relocating all files into the DemoConsole folder in a follow-up PR.

Customer Impact

  • None

Regression?

  • No

Risk

  • Minimal

Test environment(s)

  • 10.0.100-preview.3.25201.16
Microsoft Reviewers: Open in CodeFlow

Related dotnet#13388

## Proposed changes

- Unifies `DesignSurfaceExt` and `DemoConsole` namespaces under the
latter.
- Renames class names where appropriate to reflect the shared project
identity, in preparation for relocating all files into the `DemoConsole`
folder in a follow-up PR.

## Customer Impact

- None or succinct description

## Regression?

- No

## Risk

- Minimal

## Test environment(s)

- 10.0.100-preview.3.25201.16
@ricardobossan ricardobossan self-assigned this May 8, 2025
@ricardobossan ricardobossan requested a review from a team as a code owner May 8, 2025 22:09
@ricardobossan ricardobossan added the waiting-review This item is waiting on review by one or more members of team label May 8, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request unifies the namespaces and class names under the DemoConsole identity to prepare for relocating files into the DemoConsole folder.

  • Changed namespace from DesignSurfaceExt to DemoConsole throughout integration tests
  • Renamed several classes and interfaces (e.g., UndoEngineExt → UndoEngineExtended, IDesignSurfaceExt → IDesignSurfaceExtended) for consistency
  • Updated usage in MainForm and global usings to reflect the unified naming

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/test/integration/DesignSurface/DesignSurfaceExt/UndoEngineExt.cs Updated namespace and renamed class from UndoEngineExt to UndoEngineExtended
src/test/integration/DesignSurface/DesignSurfaceExt/TabOrderHooker.cs Updated namespace from DesignSurfaceExt to DemoConsole
src/test/integration/DesignSurface/DesignSurfaceExt/PropertyGridExt.cs Updated namespace and renamed class from PropertyGridExt to PropertyGridExtended
src/test/integration/DesignSurface/DesignSurfaceExt/NameCreationServiceImp.cs Updated namespace and renamed class from NameCreationServiceImp to NameCreationService
src/test/integration/DesignSurface/DesignSurfaceExt/IDesignSurfaceExt.cs Updated namespace and renamed interface from IDesignSurfaceExt to IDesignSurfaceExtended
src/test/integration/DesignSurface/DesignSurfaceExt/DesignerSerializationServiceImpl.cs Updated namespace and renamed class from DesignerSerializationServiceImpl to DesignerSerializationService
src/test/integration/DesignSurface/DesignSurfaceExt/DesignerOptionServiceExt.cs Updated namespace from DesignSurfaceExt to DemoConsole
src/test/integration/DesignSurface/DesignSurfaceExt/DesignSurfaceExt.cs Updated namespace and renamed class from DesignSurfaceExt to DesignSurfaceExtended; updated field types accordingly
src/test/integration/DesignSurface/DemoConsole/MainForm.cs Updated variable types from IDesignSurfaceExt to IDesignSurfaceExtended and usage of DesignSurfaceExtended
src/test/integration/DesignSurface/DemoConsole/GlobalUsings.cs Updated global using from DesignSurfaceExt to DemoConsole
Files not reviewed (1)
  • src/test/integration/DesignSurface/DemoConsole/MainForm.Designer.cs: Language not supported
Comments suppressed due to low confidence (1)

src/test/integration/DesignSurface/DesignSurfaceExt/DesignSurfaceExt.cs:8

  • The constant value still uses 'DesignSurfaceExt' even though the class and namespace have been renamed to 'DemoConsole' and 'DesignSurfaceExtended'. Consider updating the constant to reflect the new naming for consistency.
private const string Name = "DesignSurfaceExt";

Copy link
Member

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you will rename binaries and the cs files in the next PR as well?

Copy link

codecov bot commented May 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.60183%. Comparing base (8c5ddfb) to head (760b31b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #13433         +/-   ##
===================================================
+ Coverage   76.59808%   76.60183%   +0.00375%     
===================================================
  Files           3230        3230                 
  Lines         639097      639097                 
  Branches       47289       47289                 
===================================================
+ Hits          489536      489560         +24     
+ Misses        145997      145964         -33     
- Partials        3564        3573          +9     
Flag Coverage Δ
Debug 76.60183% <ø> (+0.00375%) ⬆️
integration 18.78388% <ø> (+0.00700%) ⬆️
production 51.00684% <ø> (+0.00837%) ⬆️
test 97.40411% <ø> (ø)
unit 48.41767% <ø> (+0.03209%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ricardobossan ricardobossan merged commit dd514dc into dotnet:main May 8, 2025
9 checks passed
@dotnet-policy-service dotnet-policy-service bot removed the waiting-review This item is waiting on review by one or more members of team label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants