AyCode.Blazor/AyCode.Blazor.Components.Tests/Grids
Loretta b80b117a38 Update docs: enforce .md sync, clarify structure & TFMs
Expanded and clarified solution/project documentation:
- Added all top-level docs and docs/ folder as solution items in .sln files
- Inserted maintenance notices in all project and subfolder READMEs: require .md sync with code
- Main READMEs now include project tables with TFM, purpose, and README links
- ARCHITECTURE.md now details dependency graph and TFM rationale
- CONVENTIONS.md and copilot-instructions.md require code reuse, no redundancy
- Glossary and conventions updated to require terminology/rule updates with code changes
- Emphasized DLL-only AyCode.Core refs and nopCommerce .NET 9.0 requirement
- Clarified domain terms and intentional typos
- No code logic changes; documentation and guidance only
2026-03-29 09:26:15 +02:00
..
MgGridBaseTests.cs Add URL link support to grid columns and info panel 2025-12-22 14:37:55 +01:00
README.md Update docs: enforce .md sync, clarify structure & TFMs 2026-03-29 09:26:15 +02:00
TestMgGrid.cs Add URL link support to grid columns and info panel 2025-12-22 14:37:55 +01:00

README.md

Grids

Grid component integration tests for MgGridBase layout persistence, column rendering, and URL link functionality.

Key Files

  • TestMgGrid.cs -- Test infrastructure for grid testing:
    • TestGridOrderItemDataSource -- DataSource with the 3-parameter constructor required by MgGridBase.OnInitializedAsync via Activator.CreateInstance.
    • DynamicColumnAddingEventArgs -- Event args for customizing dynamically added columns.
    • TestMgGridBase<...> -- Abstract generic test grid that overrides layout persistence with in-memory Dictionary storage and auto-builds columns from TDataItem properties via reflection.
    • TestMgGridOrderItem -- Concrete test grid bound to TestOrderItem entities.
  • MgGridBaseTests.cs -- [TestClass] with tests for:
    • Column width persistence across grid re-renders.
    • Layout storage population after render.
    • Separate layout keys for differently named grids.
    • Master grid detection.
    • Reflection-based column building (verifies Id, ProductName, Quantity columns).
    • MgGridDataColumn.UrlLink rendering with token replacement.